# Convert gmsh meshes to OGS.msh by GMSH2OGS and its problems in windows. Gmsh file is version(2.2 ASCII) and output is OGS5.msh

**URL:** <https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506>\
**Category:** Help & Support\
**Tags:** ogs5, ogs6\
**Created:** [April 18, 2020, 3:03pm UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506 "2020-04-18T15:03:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamad\_javadi](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mohamad\_javadi](https://discourse.opengeosys.org/u/mohamad_javadi)\
**Post date:** [April 18, 2020, 3:03pm UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506/1 "2020-04-18T15:03:13Z")

</div>

Dears  
Hi  
please help me.

I want to remodel the example 4.1 of Geothermal\_OGS3 book and I’m using GMSH2OGS.exe which is located in ogs6.3.0 folder.

I exported my GMSH meshes by version 2 ASCII (which is validated version for GMSH2OGS.exe), when I want to use this converter, I face with error and program be stopped.

Please help me How I can convert my meshes to .msh?

Best Regards

---

<div class="post-metadata">

**Author:** ![thomas.fischer](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/thomas.fischer/32/416_2.png) [@thomas.fischer](https://discourse.opengeosys.org/u/thomas.fischer)\
**Post date:** [April 20, 2020, 9:26am UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506/2 "2020-04-20T09:26:07Z")

</div>

Dear Mohamad,

what I understood:

- You have a mesh generated using gmsh.
- You saved the mesh in gmsh using the file format version 2.
- You have a problem to convert the mesh using GMSH2OGS.exe.

Please desclibe the problem in more detail.

- Are there any message in the terminal?
- Could you provide the version of your GMSH2OGS.exe? You can see the version in the output of `bin/GMSH2OGS --help`.
- Could you provide a small test example that shows the error?

Best regards,  
Tom

---

<div class="post-metadata">

**Author:** ![mohamad\_javadi](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mohamad\_javadi](https://discourse.opengeosys.org/u/mohamad_javadi)\
**Post date:** [April 20, 2020, 12:46pm UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506/3 "2020-04-20T12:46:36Z")

</div>

Dear Tom,  
Hi  
Thanks for reply.

answer of your questions:

1. No there aren’t any message because GMSH2OGS.EXE has stopped working and windows suggests 1. check online for a solution 2. close program 3. debug the program

2. Its version is 6.3.0 but I want to export for OGS5 . I’ve read that for OGS5 I must type “filename.msh.”

3. Unfortunately, I don’t know how to test a .exe file with visual studio.

---

<div class="post-metadata">

**Author:** ![mohamad\_javadi](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mohamad\_javadi](https://discourse.opengeosys.org/u/mohamad_javadi)\
**Post date:** [April 20, 2020, 12:47pm UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506/4 "2020-04-20T12:47:12Z")

</div>

Best Regrards  
Mohamad

---

<div class="post-metadata">

**Author:** ![thomas.fischer](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/thomas.fischer/32/416_2.png) [@thomas.fischer](https://discourse.opengeosys.org/u/thomas.fischer)\
**Post date:** [April 20, 2020, 1:10pm UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506/5 "2020-04-20T13:10:32Z")

</div>

Dear Mohamad,

could you provide a (small) test example that shows the error?

Best regards,  
Tom

---

<div class="post-metadata">

**Author:** ![mohamad\_javadi](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mohamad\_javadi](https://discourse.opengeosys.org/u/mohamad_javadi)\
**Post date:** [April 20, 2020, 1:11pm UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506/6 "2020-04-20T13:11:41Z")

</div>

How I can provide a small test ?

Thanks

---

<div class="post-metadata">

**Author:** ![mohamad\_javadi](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mohamad\_javadi](https://discourse.opengeosys.org/u/mohamad_javadi)\
**Post date:** [April 20, 2020, 1:33pm UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506/7 "2020-04-20T13:33:02Z")

</div>

‘GMSH2OGS.exe’ (Win32): Loaded ‘D:\OGS study\geothermal3\4.Benchmarks\my self\GMSH2OGS.exe’. Module was built without symbols.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\ntdll.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\kernel32.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\KernelBase.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\winmm.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\msvcrt.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\user32.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\gdi32.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\lpk.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\usp10.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\msvcp140.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\vcruntime140.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-runtime-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\ucrtbase.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-core-timezone-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-core-file-l2-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-core-localization-l1-2-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-core-synch-l1-2-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-core-processthreads-l1-1-1.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-core-file-l1-2-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-heap-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-string-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-stdio-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-convert-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-locale-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-math-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-filesystem-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-time-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-environment-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\api-ms-win-crt-utility-l1-1-0.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\vcomp140.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\imm32.dll’. Cannot find or open the PDB file.  
‘GMSH2OGS.exe’ (Win32): Loaded ‘C:\Windows\System32\msctf.dll’. Cannot find or open the PDB file.  
Exception thrown at 0x000007FEFCB8B87D in GMSH2OGS.exe: Microsoft C++ exception: TCLAP::CmdLineParseException at memory location 0x00000000001DF2A0.  
Exception thrown at 0x000007FEFCB8B87D in GMSH2OGS.exe: Microsoft C++ exception: TCLAP::ExitException at memory location 0x00000000001DCC60.  
The program ‘[20084] GMSH2OGS.exe’ has exited with code 1 (0x1).

---

<div class="post-metadata">

**Author:** ![mohamad\_javadi](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mohamad\_javadi](https://discourse.opengeosys.org/u/mohamad_javadi)\
**Post date:** [April 27, 2020, 6:22am UTC](https://discourse.opengeosys.org/t/convert-gmsh-meshes-to-ogs-msh-by-gmsh2ogs-and-its-problems-in-windows-gmsh-file-is-version-2-2-ascii-and-output-is-ogs5-msh/506/8 "2020-04-27T06:22:33Z")

</div>

Dear Tomas

Hello

I solved this problem by using GMSH2OGS file which is in OGS 6.2.2 folder.

Best Regards.
