User Tools

Site Tools


gasoline

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gasoline [2019/07/07 20:09]
Wiki Admin
gasoline [2019/07/07 20:24] (current)
Wiki Admin
Line 3: Line 3:
 Gasoline Is A Modern SPH Simulation Code For Astrophysical Problems. Gasoline is written in modern C. All you need to build it is the MDL helper library and a C compiler. For more information please visit  Gasoline Is A Modern SPH Simulation Code For Astrophysical Problems. Gasoline is written in modern C. All you need to build it is the MDL helper library and a C compiler. For more information please visit 
  
-  * Download Gasoline +[[ https://​gasoline-code.com/​ ]]
- +
-<​code>​ +
-[[https://​gasoline-code.com/​]] +
-<​code/>​+
  
 =====Building Gasoline===== =====Building Gasoline=====
Line 13: Line 9:
 Gasoline is pretty simple to compile. All you need is a C compiler (gcc/​icc/​clang/​etc.),​ the machine dependent library, and the code for gasoline itself. Gasoline is pretty simple to compile. All you need is a C compiler (gcc/​icc/​clang/​etc.),​ the machine dependent library, and the code for gasoline itself.
  
-====Fetch Prerequisites====+=====Fetch Prerequisites=====
 Gasoline and the mdl library are both hosted by the N-Body Shop on github. If you have a github account with SSH keys enabled, you can fetch these repositories over git+ssh: Gasoline and the mdl library are both hosted by the N-Body Shop on github. If you have a github account with SSH keys enabled, you can fetch these repositories over git+ssh:
  
Line 19: Line 15:
  
 <​code>​ <​code>​
-$ git clone [[ https://​github.com/​N-BodyShop/​mdl ​]] +$ git clone https://​github.com/​N-BodyShop/​mdl 
-$ git clone [[ https://​github.com/​N-BodyShop/​gasoline ​]]+$ git clone https://​github.com/​N-BodyShop/​gasoline
 </​code>​ </​code>​
  
Line 29: Line 25:
 Gasoline uses a very simple build system: a single makefile! In the gasoline repository you have just cloned, you should find a file, Makefile.default. This is the skeleton Makefile you will use to build your copy of gasoline. First, copy this to Makefile: Gasoline uses a very simple build system: a single makefile! In the gasoline repository you have just cloned, you should find a file, Makefile.default. This is the skeleton Makefile you will use to build your copy of gasoline. First, copy this to Makefile:
  
 +<​code>​
 cp Makefile.default Makefile cp Makefile.default Makefile
 +</​code>​
 +
 Next, you will open Makefile in your text editor of choice. By default, Gasoline is configured to build with "​standard"​ physics options for doing galaxy/​ISM/​cosmological simulations,​ using gcc as the compiler. If you wish to use a different compiler, simply change the CC variable. Next, you will open Makefile in your text editor of choice. By default, Gasoline is configured to build with "​standard"​ physics options for doing galaxy/​ISM/​cosmological simulations,​ using gcc as the compiler. If you wish to use a different compiler, simply change the CC variable.
  
Line 50: Line 49:
 <​code>​ <​code>​
 $ hg clone [[ https://​bitbucket.org/​grackle/​grackle ]] $ hg clone [[ https://​bitbucket.org/​grackle/​grackle ]]
-<code/>+</code>
  
   * Then make sure you are on the grackle-2.1 tag:   * Then make sure you are on the grackle-2.1 tag:
Line 56: Line 55:
 <​code>​ <​code>​
 $ hg update grackle-2.1\ $ hg update grackle-2.1\
-<code/>+</code>
  
 Instructions on building grackle can be found on the grackle website Instructions on building grackle can be found on the grackle website
Line 67: Line 66:
 $ COOLING_DEF = -DCOOLING_GRACKLE -I/​path/​to/​grackle_header_directory $ COOLING_DEF = -DCOOLING_GRACKLE -I/​path/​to/​grackle_header_directory
 $ COOLING_LIB = /​path/​to/​libgrackle.so -lhdf5 $ COOLING_LIB = /​path/​to/​libgrackle.so -lhdf5
-<code/>+</code>
  
 Then, compile as usual and you should have a Gasoline build with Grackle cooling! Then, compile as usual and you should have a Gasoline build with Grackle cooling!
gasoline.txt · Last modified: 2019/07/07 20:24 by Wiki Admin