You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
forty-twoo 7d72e12e9f first add 1 year ago
..
3d_objects first add 1 year ago
advection_diffusion first add 1 year ago
cahnHilliard_equation first add 1 year ago
coupled_domains first add 1 year ago
customization first add 1 year ago
electromagnetic_scattering first add 1 year ago
ghost_nodes first add 1 year ago
linear_elasticity first add 1 year ago
nonNewtonian_fluid first add 1 year ago
poisson_equation first add 1 year ago
quantum_mechanics first add 1 year ago
thermo_fluid first add 1 year ago
wave_equation first add 1 year ago
CMakeLists.txt first add 1 year ago
README.md first add 1 year ago

README.md

Compiling and running examples

Our standard example name will be poisson_dirichlet_1D, but the instructions naturally apply to all other examples. Once you have built medusa, you can build and run the examples from your build directory simply as

make poisson_dirichlet_1d_run

This will run the example from its own directory, e.g. examples/poisson_equation.

Standalone compilation

Alternatively, you may wish to compile and run the examples individually. First, you have to build the medusa_standalone target in your medusa build directory, which creates a static library medusa_standalone.

The examples can then be compiled manually using e.g. g++, provided that appropriate include and library paths are set and the medusa_standalone library is specified for linking.

Example command to be run from poisson_equation directory:

g++ -o poisson_dirichlet_1D poisson_dirichlet_1D.cpp -I ../../include -Wall -O3 -L ../../bin -lmedusa_standalone

The compiled example can be run simply as

./poisson_dirichlet_1D

More detailed instuctions and the description of the philosphy of the examples is available on our wiki.