Clone using ssh:
$ git clone [email protected]:zbyerly/2d_hydro.git
or using https:
$ git clone https://github.com/zbyerly/2d_hydro.git
or download zipped version from https://github.com/zbyerly/2d_hydro and unzip
Create a separate build directory (prefered):
$ mkdir my_2d_hydro_build $ cd my_2d_hydro_build
Compile with ifort:
$ ifort -openmp -o 2d_hydro_executable ../2d_hydro/*.f90
openmp flag can be left out to disable openmp support
Set openmp environment variables:
$ export OMP_NUM_THREADS=8
create data directory inside run directory
$ mkdir data
2d_hydro_executable takes 3 arguments, the first determines which set of momenta is evolved (cart or cyl), the second determines the reconstruction scheme(ppm or minmod), and the third sets the rotation of the grid (rotate norotate). For example, to run the code with cartesian momenta, using minmod reconstruction, on a rotating grid:
$ ./2d_hydro_executable cart minmod rotate
???
Profit!
-
Notifications
You must be signed in to change notification settings - Fork 1
zbyerly/2d_hydro
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
2-dimensional hydrocode without gravity
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published