Code Monkey home page Code Monkey logo

flac-thermochron's Introduction

==========
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
f90      -- Sun Studio

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
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 ../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 test-subduction.inp

To restart a model from previous output, execute following commands:
$ mv _contents.save _contents.rs
$ ../src/flac test-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, LLNL's VisIt, MayaVi.

If you don't have 'numpy' package, there is a similar program in C, but you
will need to compile the program first.

$ cd ../util
$ make
$ cd ../examples
$ ../util/flac2vtk .

----
by Eh Tan, Jan. 2011

flac-thermochron's People

Contributors

minjunnzheng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.