comcot-gfortran
comcot-gfortran copied to clipboard
comcot (gfortran)
- I've made comcot compatiable to gfortran since I started the GPU-comcot project. However, the original comcot, which runs on CPU serially, did not remain on my git history. Besides, I've heard of demands on gfortran compatiable comcot recently and it takes quite some efforts to transfer from ifort to gfortran for beginer who's not familiar with fortran. Therefore, I made this repo to respond the needs and make it as a benchmark to be able to test the speedup against GPU-comcot.
Requirements
software
(possible supported version/developing environment):
-
gfortran (4.1.2-46 ~ 8.2.0/4.8)
-
GNU make (/3.82)
Notes: Platforms other than Linux
MacOS
- gfortran compiler can be equipped with
gcc
at version 8. Therefore, the easiest way to installgcc
is bybrew install
command , then you will havegfortran
ready. Or reference the GNU site to buildgcc
by several of ways other thanbrew
. Here is the link instructing how to build precompiledgcc
binary package for MacOS.
Windows
Installation
clone
git clone https://github.com/HandsomeAndy/comcot-gfortran.git
Setup
GNU solftwares
- Generally, gnu
make
andgfortran
are pre-installed on linux machines. Trymake --version
andgfortran --version
to check if they exist. See 'Notes' for more informations.
Install
make
Run a Simulation
-
The input file of COMCOT is called
comcot.ctl
. Modify the file to specify a simulation time, time step, fault parameters, and grid settings. Additionally, a corresponding topographic file (available at etopo) is required for grid construction, and the path to the file should be provided incomcot.ctl
. For example, the fresh downloadedcomcot.ctl
takes../etopo_halk2.xyz
as the topographic file and simulate the 2011 Tōhoku tsunami. -
To run the simulation, simply execute the program
comcot
./comcot
Features
Acknowledgements
gfortran compatible version of COMCOT was developed by Tao, Chiu at Tsunami reseach group, IHOS, NCU. The goal of this work is to librate, coporate ideas with the community and accelerate the development of a high-throughput tsunami warning system at a relatively low cost. Original COMCOT version can be found at here.