Skip to content

Commit

Permalink
MPAS building in UFSATM! Some more reorganization. Initial infrastruc…
Browse files Browse the repository at this point in the history
…ture for CCPP. More CMake modifications
  • Loading branch information
dustinswales committed Aug 1, 2024
1 parent 9e82655 commit f0c3a78
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
13 changes: 11 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ find_package(bacio 2.4.0 REQUIRED)
find_package(sp 2.3.3 REQUIRED)
find_package(w3emc 2.9.2 REQUIRED)

if(MPAS)
find_package(PnetCDF REQUIRED COMPONENTS Fortran)
find_package(PIO REQUIRED COMPONENTS Fortran C)
set(FV3 OFF)
endif()

# Configure Python
find_package(Python 3.6 REQUIRED COMPONENTS Interpreter)
message("Found Python: ${Python_EXECUTABLE}")
Expand All @@ -189,13 +195,16 @@ endif()
### Atmosphere Components [FV3, MPAS?]
### DJS2024: There will be a generalized atmospheric component with multiple
### dycores, not multiple atmospheric components (one for each dycore).
### So, - rename the atmospheric component FV3 to UFSATM, then
### - if FV3 or MPAS, add_sudirectory(UFSATM)
### So, - rename the atmospheric component FV3 to UFSATM or ATM, then
### - if FV3 or MPAS, add_sudirectory(UFSATM or ATM)
###
###############################################################################
if(FV3)
add_subdirectory(FV3)
endif()
if (MPAS)
add_subdirectory(FV3)
endif()

###############################################################################
### AQM
Expand Down
2 changes: 1 addition & 1 deletion FV3
Submodule FV3 updated 126 files
12 changes: 6 additions & 6 deletions driver/UFSDriver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ subroutine SetModelServices(driver, rc)
end if
#endif
#ifdef FRONT_MPAS
if (trim(model) == "mpas") then
call NUOPC_DriverAddComp(driver, trim(prefix), MPAS_SS, &
info=info, petList=petList, comp=comp, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
found_comp = .true.
end if
! if (trim(model) == "mpas") then
! call NUOPC_DriverAddComp(driver, trim(prefix), MPAS_SS, &
! info=info, petList=petList, comp=comp, rc=rc)
! if (ChkErr(rc,__LINE__,u_FILE_u)) return
! found_comp = .true.
! end if
#endif
#if defined FRONT_CDEPS_DATM
if (trim(model) == "datm" ) then
Expand Down

0 comments on commit f0c3a78

Please sign in to comment.