Skip to content
Snippets Groups Projects
Commit 60fdf556 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

First pass at Fortran API thanks to Michael Ermakov (#1453)

parent b150f1ca
No related branches found
No related tags found
1 merge request!435Fortran api
Pipeline #8608 passed
Loading
  • Developer

    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.

    t1.f

    t2.f

    t6.f

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment