Gyrokinetic Toroidal Code, Version 1, 2002. Original code location : http://phoenix.ps.uci.edu/GTC/codes.php
sudo apt-get install libssl-dev sudo apt-get install libnetcdf-dev
- create a ramdisk: sudo mount -t tmpfs -o size=4G tmpfs /mnt/ramdisk sudo chown -R username /mnt/ramdisk 1.a For NVM code, create a ramdisk sudo mount -t tmpfs -o size=1G tmpfs /mnt/pvm sudo chown -R username /mnt/pvm
- make
- run_gtc.sh
During each first run, the code creates nvm.lck files, to identify whether this is a fresh run or restart run. remove them if you are doing testing. Invoking,
make restartclean will do that for you.
#restart
- irun in gtc.input should be set to 1
- history_restart.out should be renamed to history.out
- shearab_restart.out should be renamed to shearab.out
Convenience script >> restart_gtc.sh (replaces the above files and run gtc)
#Running gtc in a cluster
mpirun -n 2 -f host_file ./gtc