Skip to content

Commit

Permalink
feature/cmake This commit references ufs-community#91.
Browse files Browse the repository at this point in the history
Add back package_find for netcdf.  Remove set of compiler and
compiler flags from dell build module, which are not used
by cmake.  Minor cleanup of "build_chgres_cube.sh".
  • Loading branch information
GeorgeGayno-NOAA committed Mar 17, 2020
1 parent 725dd1c commit 9217457
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ if(NOT NETCDF)
list(APPEND CMAKE_PREFIX_PATH $ENV{NETCDF_FORTRAN})
endif()
endif()
find_package(NetCDF MODULE REQUIRED)

find_package(MPI REQUIRED COMPONENTS Fortran)
find_package(ESMF MODULE REQUIRED)
Expand Down
7 changes: 0 additions & 7 deletions modulefiles/chgres_cube.wcoss_dell_p3
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@ module use /gpfs/dell2/emc/modeling/noscrub/emc.nemspara/soft/modulefiles
module load esmf/8.0.0

export WGRIB2_ROOT=/u/Wesley.Ebisuzaki/home/grib2.v2.0.8.intel/lib
#export WGRIB2API_INC=/u/Wesley.Ebisuzaki/home/grib2.v2.0.8.intel/lib
#export WGRIB2_LIB=/u/Wesley.Ebisuzaki/home/grib2.v2.0.8.intel/lib/libwgrib2.a

export FCOMP=mpif90
export FFLAGS="-O3 -fp-model precise -g -traceback -r8 -i4 -qopenmp -convert big_endian -assume byterecl"
# for debugging
#export FFLAGS="-O0 -g -traceback -r8 -i4 -qopenmp -convert big_endian -check bounds -warn unused -assume byterecl"
16 changes: 4 additions & 12 deletions sorc/build_chgres_cube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,13 @@ if [ ! -d "../exec" ]; then
mkdir ../exec
fi

#
# --- Chgres part
#
rm -fr ../build
mkdir ../build
cd ../build
echo $ESMFMKFILE
cmake .. -DCMAKE_Fortran_COMPILER=ifort
make
exit

#
# --- Chgres part
#
cd chgres_cube.fd

make clean
make
make install

make -j 8 VERBOSE=1
exit

0 comments on commit 9217457

Please sign in to comment.