# Identifier \`savegmsh\` does not exist

**URL:** <https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101>\
**Category:** FreeFEM installation\
**Created:** [July 19, 2021, 3:46am UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101 "2021-07-19T03:46:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ionizing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ionizing/32/648_2.png) [@Ionizing](https://community.freefem.org/u/Ionizing)\
**Post date:** [July 19, 2021, 3:46am UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101/1 "2021-07-19T03:46:32Z")

</div>

Hello, I am a newbie to FreeFEM++ and I’ve been learning it for some days. Here there is something wrong with the learning…

# Problem

I ran across a problem that is

```auto
177 : savegmsh The Identifier savegmsh does not exist
Error line number 177, in file schrodinger-harmonic-oscillator-2d-SLEPc.edp, before token savegmsh

```

when I was trying the [example](https://github.com/FreeFem/FreeFem-sources/blob/develop/examples/hpddm/schrodinger-harmonic-oscillator-2d-SLEPc.edp). I wonder if it requires me to compile it by myself in order to reconfigure it `--with-gmsh` or something else like it?

The full log is [here](https://paste.ubuntu.com/p/56z6hwxpbr/).

# My environment:

Running command: `ff-mpirun -np 1 schrodinger-harmonic-oscillator-2d-SLEPc.edp > dump.log`

FreeFEM++ version: 4.9

OS: macOS 10.15.6  
Installation of FreeFEM++: downloaded from github release

```auto
'/usr/local/mpich3/bin/mpiexec' -np 1 --version
HYDRA build details:
    Version: 3.3
    Release Date: Wed Nov 21 11:32:40 CST 2018
    CC: clang
    CXX: clang++
    F77: ifort
    F90: ifort
    Configure options: '--disable-option-checking' '--prefix=/usr/local/mpich3' 'F77=ifort' 'FC=ifort' 'CXX=clang++' 'CC=clang' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS= -O2' 'LDFLAGS=' 'LIBS=' 'CPPFLAGS= -I/Users/hecht/work/soft/mpich-3.3/src/mpl/include -I/Users/hecht/work/soft/mpich-3.3/src/mpl/include -I/Users/hecht/work/soft/mpich-3.3/src/openpa/src -I/Users/hecht/work/soft/mpich-3.3/src/openpa/src -D_REENTRANT -I/Users/hecht/work/soft/mpich-3.3/src/mpi/romio/include' 'MPLLIBNAME=mpl'
    Process Manager: pmi
    Launchers available: ssh rsh fork slurm ll lsf sge manual persist
    Topology libraries available: hwloc
    Resource management kernels available: user slurm ll lsf sge pbs cobalt
    Checkpointing libraries available:
    Demux engines available: poll select

```

Is there anything else I should provide? Looking forward to your reply~

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [July 19, 2021, 3:15pm UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101/2 "2021-07-19T15:15:22Z")

</div>

You probably need to add `load "gmsh"` to your script.

---

<div class="post-metadata">

**Author:** ![Ionizing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ionizing/32/648_2.png) [@Ionizing](https://community.freefem.org/u/Ionizing)\
**Post date:** [July 20, 2021, 2:16am UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101/3 "2021-07-20T02:16:00Z")

</div>

Thanks for the reply! I removed the `savegmsh` at the last line and it can run! Thank you.

May I ask an another question? It seems the `plotMPI` does not show any pictures or write them on disk. How can I make it work?  
[dump.log](https://community.freefem.org/uploads/short-url/eNz4eSqshLjeMoEcyzGOKv4rXAq.log) (303.7 KB)

---

<div class="post-metadata">

**Author:** ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)\
**Post date:** [July 20, 2021, 2:20am UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101/4 "2021-07-20T02:20:06Z")

</div>

use the option `-wg` “with graphics” :  
FreeFem+±mpi -wg

---

<div class="post-metadata">

**Author:** ![Ionizing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ionizing/32/648_2.png) [@Ionizing](https://community.freefem.org/u/Ionizing)\
**Post date:** [July 20, 2021, 7:30am UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101/5 "2021-07-20T07:30:06Z")

</div>

OK, thanks for the reply, I can view the wave function now!

---

<div class="post-metadata">

**Author:** ![Ionizing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ionizing/32/648_2.png) [@Ionizing](https://community.freefem.org/u/Ionizing)\
**Post date:** [July 20, 2021, 8:19am UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101/6 "2021-07-20T08:19:05Z")

</div>

I found where the issue is:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/1X/9053d0ce5bd62c6826c420e578011d781e3adb84.jpeg)  
and  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/1X/9ded41b96df11338e42ba4a0ecdcde76d9371130.jpeg)

It seems `ff-mpirun` adds `-nw` by default and that argument can be canceled by `-win -wg`.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [July 20, 2021, 9:38am UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101/7 "2021-07-20T09:38:19Z")

</div>

It’s not an “issue”, it’s the default behavior with FreeFem+±mpi.

---

<div class="post-metadata">

**Author:** ![Ionizing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ionizing/32/648_2.png) [@Ionizing](https://community.freefem.org/u/Ionizing)\
**Post date:** [July 20, 2021, 3:18pm UTC](https://community.freefem.org/t/identifier-savegmsh-does-not-exist/1101/8 "2021-07-20T15:18:38Z")

</div>

OK. Thanks for the explanation!
