forked from hafs-community/HAFS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating standalone CMake build system for hafs-community/gfdl-tracker (
hafs-community#85) * Creating standalone CMake build system for hafs-community/gfdl-tracker
- Loading branch information
1 parent
79f611d
commit 2369116
Showing
2 changed files
with
3 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,7 @@ | ||
#!/bin/sh | ||
set -eux | ||
source ./machine-setup.sh > /dev/null 2>&1 | ||
cwd=`pwd` | ||
|
||
module use ../modulefiles | ||
module load modulefile.hafs.$target | ||
module list | ||
|
||
if [ $target = hera ]; then | ||
export FC=ifort | ||
export F90=ifort | ||
export CC=icc | ||
elif [ $target = orion ]; then | ||
export FC=ifort | ||
export F90=ifort | ||
export CC=icc | ||
elif [ $target = jet ]; then | ||
export FC=ifort | ||
export F90=ifort | ||
export CC=icc | ||
elif [ $target = wcoss_cray ]; then | ||
export FC=ftn | ||
export F90=ftn | ||
export CC=icc | ||
elif [ $target = wcoss_dell_p3 ]; then | ||
export FC=ifort | ||
export F90=ifort | ||
export CC=icc | ||
else | ||
echo "Unknown machine = $target" | ||
exit 1 | ||
fi | ||
|
||
cd hafs_vortextracker.fd | ||
if [ -d "build" ]; then | ||
rm -rf build | ||
fi | ||
mkdir build | ||
cd build | ||
|
||
if [ $target = wcoss_cray ]; then | ||
cmake .. -DCMAKE_Fortran_COMPILER=ftn -DCMAKE_C_COMPILER=cc | ||
else | ||
cmake .. -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icc | ||
fi | ||
make -j 8 VERBOSE=1 | ||
make install | ||
|
||
cd ../ | ||
cd hafs_vortextracker.fd/src | ||
./build_all_cmake.sh | ||
|
||
exit |
Submodule hafs_vortextracker.fd
updated
7 files
+38 −0 | modulefiles/modulefile.hera | |
+37 −0 | modulefiles/modulefile.jet | |
+36 −0 | modulefiles/modulefile.orion | |
+53 −0 | modulefiles/modulefile.wcoss_cray | |
+35 −0 | modulefiles/modulefile.wcoss_dell_p3 | |
+54 −0 | src/build_all_cmake.sh | |
+123 −0 | src/machine-setup.sh |