- 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.
(possible supported version/developing environment):
-
gfortran (4.1.2-46 ~ 8.2.0/4.8)
-
GNU make (/3.82)
- gfortran compiler can be equipped with
gccat version 8. Therefore, the easiest way to installgccis bybrew installcommand , then you will havegfortranready. Or reference the GNU site to buildgccby several of ways other thanbrew. Here is the link instructing how to build precompiledgccbinary package for MacOS.
git clone https://github.com/HandsomeAndy/comcot-gfortran.git- Generally, gnu
makeandgfortranare pre-installed on linux machines. Trymake --versionandgfortran --versionto check if they exist. See 'Notes' for more informations.
make-
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.ctltakes../etopo_halk2.xyzas the topographic file and simulate the 2011 Tōhoku tsunami. -
To run the simulation, simply execute the program
comcot
./comcotgfortran 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.
