diff --git a/CMakeLists.txt b/CMakeLists.txt index c310110ca..cd8eef7e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,9 @@ set(USE_GFSL63 ON) if(MOVING_NEST) set(MOVING_NEST ON) endif() +if(HYDRO) + set(HYDRO ON) +endif() add_subdirectory(atmos_cubed_sphere) target_compile_definitions(fv3 PRIVATE BYPASS_BREED_SLP_INLINE) @@ -61,7 +64,11 @@ if(NOT PARALLEL_NETCDF) endif() if(MOVING_NEST) - list(APPEND _fv3atm_defs_private MOVING_NEST MOIST_CAPPA USE_COND) + list(APPEND _fv3atm_defs_private MOVING_NEST) + if(NOT HYDRO) + list(APPEND _fv3atm_defs_private MOIST_CAPPA USE_COND) + endif() + if(DEBUG) list(APPEND _fv3atm_defs_private DEBUG) endif() diff --git a/atmos_cubed_sphere b/atmos_cubed_sphere index 97114888f..cc8afe64b 160000 --- a/atmos_cubed_sphere +++ b/atmos_cubed_sphere @@ -1 +1 @@ -Subproject commit 97114888f529c2df70ed4a350fd2428df74839ff +Subproject commit cc8afe64b9420dd7379e47cee5e3f30f4ac44b58 diff --git a/ccpp/CMakeLists.txt b/ccpp/CMakeLists.txt index ee2b9c8b2..e9a5d56c7 100644 --- a/ccpp/CMakeLists.txt +++ b/ccpp/CMakeLists.txt @@ -84,8 +84,10 @@ endif(CCPP_32BIT) #------------------------------------------------------------------------------ # Add model-specific flags for C/C++/Fortran preprocessor -add_definitions(-DMOIST_CAPPA -DUSE_COND -DNEMS_GSM) -add_definitions(-DINTERNAL_FILE_NML) +if(NOT HYDRO) + add_definitions(-DMOIST_CAPPA -DUSE_COND -DNEMS_GSM) +endif() +add_definitions(-DINTERNAL_FILE_NML -DNEMS_GSM) if(MULTI_GASES) add_definitions(-DMULTI_GASES) diff --git a/io/post_fv3.F90 b/io/post_fv3.F90 index c07fad471..1a679f18d 100644 --- a/io/post_fv3.F90 +++ b/io/post_fv3.F90 @@ -3564,6 +3564,19 @@ subroutine set_postvars_fv3(wrt_int_state,grid_id,mype,mpicomp) enddo endif + ! model level omga + if(trim(fieldname)=='omga') then + !$omp parallel do default(none) private(i,j,l) shared(lm,jsta,jend,ista,iend,omga,arrayr43d,fillvalue,spval) + do l=1,lm + do j=jsta,jend + do i=ista, iend + omga(i,j,l) = arrayr43d(i,j,l) + if(abs(arrayr43d(i,j,l)-fillvalue)