-
- Downloads
First pass at Fortran API thanks to Michael Ermakov (#1453)
- CHANGELOG.txt 1 addition, 1 deletionCHANGELOG.txt
- CREDITS.txt 3 additions, 3 deletionsCREDITS.txt
- api/GenApi.py 189 additions, 1 deletionapi/GenApi.py
- api/gen.py 1 addition, 0 deletionsapi/gen.py
- api/gmshf.h 6367 additions, 0 deletionsapi/gmshf.h
- tutorial/c/t2.c 208 additions, 0 deletionstutorial/c/t2.c
- tutorial/c/t6.c 123 additions, 0 deletionstutorial/c/t6.c
- tutorial/fortran/t1.f 82 additions, 0 deletionstutorial/fortran/t1.f
- tutorial/fortran/t2.f 190 additions, 0 deletionstutorial/fortran/t2.f
- tutorial/fortran/t6.f 135 additions, 0 deletionstutorial/fortran/t6.f
-
The new tutorial t1.f, t2.f and t6.f are compatible with gfortran. Please, add them to the commit. There were two points: 1) explicit int*8 number for size_t was needed, solution : 0 -> 0_8; 2) specific command-line access functions were used, solution - use standard 2003 functions. Tests: Win'10 - intel fortran and gfortran ok. Win'10 + cygwin - intel fortran and gfortran ok, but 2-d mesh is different due to Min/Max element size are (100, 1000) for intel fortran and (0, 1e+22) for gfortran. Why it could be so and how to avoid it by default? Gfortran reports additionally "floating-point exceptions are signalling" generated by gmshModelMeshGenerate. Ubuntu 18.04 - intel fortran is absent, gfortran works for t1.f and does not work for t2.f and t6.f - no crash and no execution prints. I will add prints of ierr for each call.
I attach files. Please, add them. Thank you in advance.