Skip to content

Commit

Permalink
Merge pull request #160 from BerkeleyLab/update-cloud-microphysics-deps
Browse files Browse the repository at this point in the history
Update cloud-microphysics compiler and dependencies
  • Loading branch information
ktras authored Jun 20, 2024
2 parents ef7e650 + 7207362 commit 93815cd
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cloud-microphysics/app/tensor-statistics.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ program tensor_statistics
!! 2. Saves the resulting statistics to text files with space-separated columns and column labels.

! External dependencies:
use sourcery_m, only : command_line_t, file_t, string_t
use julienne_m, only : command_line_t, file_t, string_t
use assert_m, only : assert, intrinsic_array_t
use inference_engine_m, only : rkind, ubounds_t
use ieee_arithmetic, only : ieee_is_nan
Expand Down
2 changes: 1 addition & 1 deletion cloud-microphysics/app/train-cloud-microphysics.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ program train_cloud_microphysics
!! https://github.com/BerkeleyLab/icar.

!! External dependencies:
use sourcery_m, only : string_t, file_t, command_line_t, bin_t
use julienne_m, only : string_t, file_t, command_line_t, bin_t
use assert_m, only : assert, intrinsic_array_t
use tensor_range_m, only : tensor_range_t
use ieee_arithmetic, only : ieee_is_nan
Expand Down
4 changes: 2 additions & 2 deletions cloud-microphysics/fpm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author = "Damian Rouson, Tan Nguyen, Jordan Welsman, David Torres, Brad Richards
maintainer = "rouson@lbl.gov"

[dependencies]
assert = {git = "https://github.com/sourceryinstitute/assert", tag = "1.6.0"}
sourcery = {git = "https://github.com/sourceryinstitute/sourcery", tag = "4.6.1"}
assert = {git = "https://github.com/sourceryinstitute/assert", tag = "1.7.0"}
julienne = {git = "https://github.com/sourceryinstitute/julienne", tag = "1.0.0"}
inference-engine = {path = "../"}
netcdf-interfaces = {git = "https://github.com/LKedward/netcdf-interfaces.git", rev = "d2bbb71ac52b4e346b62572b1ca1620134481096"}
7 changes: 3 additions & 4 deletions cloud-microphysics/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ if ! command -v brew > /dev/null ; then
fi
fi

brew tap fortran-lang/fortran # required for building fpm
brew install fortran-lang/fortran/fpm netcdf netcdf-fortran pkg-config coreutils # coreutils supports `realpath` below
brew install netcdf netcdf-fortran pkg-config coreutils # coreutils supports `realpath` below

PREFIX=`realpath $PREFIX`

Expand All @@ -65,8 +64,8 @@ NETCDFF_LIB_PATH="`brew --prefix netcdf-fortran`/lib"

FPM_LD_FLAG=" -L$NETCDF_LIB_PATH -L$HDF5_LIB_PATH -L$NETCDFF_LIB_PATH"
FPM_FLAG="-fcoarray=single -O3 -fallow-argument-mismatch -ffree-line-length-none -L$NETCDF_LIB_PATH -L$HDF5_LIB_PATH"
FPM_FC=${FC:-"gfortran-13"}
FPM_CC=${CC:-"gcc-13"}
FPM_FC=${FC:-"gfortran-14"}
FPM_CC=${CC:-"gcc-14"}

mkdir -p build

Expand Down
2 changes: 1 addition & 1 deletion cloud-microphysics/src/histogram_m.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
! Terms of use are as specified in LICENSE.txt
module histogram_m
!! Generate and represent histograms
use sourcery_m, only : file_t
use julienne_m, only : file_t
implicit none

private
Expand Down
2 changes: 1 addition & 1 deletion cloud-microphysics/src/histogram_s.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
submodule(histogram_m) histogram_s
use assert_m, only : assert, intrinsic_array_t
use kind_parameters_m, only : rkind
use sourcery_m, only : string_t, operator(.cat.)
use julienne_m, only : string_t, operator(.cat.)
implicit none

contains
Expand Down
2 changes: 1 addition & 1 deletion cloud-microphysics/test/netCDF_file_test_m.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module NetCDF_file_test_m

! External dependencies
use assert_m, only : assert
use sourcery_m, only : string_t, test_t, test_result_t
use julienne_m, only : string_t, test_t, test_result_t
use netcdf, only : &
nf90_create, nf90_def_dim, nf90_def_var, nf90_enddef, nf90_put_var, nf90_inquire_dimension, & ! functions
nf90_close, nf90_open, nf90_inq_varid, nf90_get_var, nf90_inquire_variable, &
Expand Down

0 comments on commit 93815cd

Please sign in to comment.