Skip to content
forked from tan2/geoflac-old

Code for lithospheric scale geodynamics

Notifications You must be signed in to change notification settings

cgw0814/geoflac

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

==========
Compile
==========

$ cd src
$ make F90=<f90 compiler>

This will generate a binary "flac".

Supported compilers:
gfortran -- GNU (default), v4.2 or later, otherwise openmp is disabled
ifort    -- Intel
pgf90    -- PGI, the only compiler for openacc
f90      -- Sun Studio (less tested)

The default is to build optimized binary with openmp. Several command line
options can build other type of binaries.

debug=1    -- debugging binary (detecting various coding errors at runtime)
omp=0      -- disable openmp
acc=1      -- enable openacc on nvidia gpu
coverage=1 -- code coverage analysis (only for gfortran)
gprof=1    -- profiling

E.g. to make a debugging binary
$ make debug=1


==========
Run
==========

To run the provided example input, execute following commands:
$ cd geoflac/examples
$ rm *.0 sys.msg                           # delete old output files
$ export OMP_NUM_THREADS=<# of CPU cores>  # you can skip this step if using ALL
                                           # available CPU cores
$ ../src/flac subduction.inp

To restart a model from previous output, execute following commands:
$ mv _contents.save _contents.rs
$ ../src/flac subduction.inp

The description of input parameters can be found in doc/ directory.


==========
Plot
==========

$ ../util/flac2vtk.py .

This will generate a series of VTK files (*.vts), which can be visualized by
several programs, e.g. ParaView, or LLNL's VisIt.

----
by Eh Tan, Jun. 2020

About

Code for lithospheric scale geodynamics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 57.4%
  • Python 22.5%
  • Common Lisp 18.1%
  • Makefile 2.0%