File: README.txt

package info (click to toggle)
gmsh 4.13.1%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 96,160 kB
  • sloc: cpp: 434,242; ansic: 114,885; f90: 15,323; python: 13,442; yacc: 7,299; java: 3,491; lisp: 3,191; lex: 630; perl: 571; makefile: 497; sh: 439; xml: 414; javascript: 113; pascal: 35; modula3: 32
file content (33 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
This directory contains the Gmsh Fortran tutorials, written using the Gmsh Fortran API.

To compile and run the Fortran tutorials, you need the Gmsh dynamic library and the
associated Fortran module (`gmsh.f90'). These can be either obtained

- from the binary Software Development Kit (SDK) available on the Gmsh website
  https://gmsh.info/bin/, for Windows, Linux and macOS. Download and uncompress
  the relevant gmsh*-sdk.* archive for your operating system. To compile the
  first tutorial, assuming that you are currently in the root directory of the
  SDK and that you are using the gfortran compiler:

    gfortran -o t1 include/gmsh.f90 share/doc/gmsh/tutorials/fortran/t1.f90 -Llib -lgmsh

  Then run

    ./t1

- by compiling the Gmsh source code. Follow these steps in the top-level
  directory of the Gmsh source code:

    mkdir build
    cd build
    cmake -DENABLE_BUILD_DYNAMIC=1 ..
    make
    make install
    cd ..

  Then, assuming that you are using the gcc compiler:

    gfortran -o t1 /usr/local/include/gmsh.f90 t1.f90 -L/usr/local/lib -lgmsh
    ./t1

For other Fortran API examples, see the `examples/api' directory.