Skip to content

Commit

Permalink
Fixes #3146 Merged field_utils into field
Browse files Browse the repository at this point in the history
  • Loading branch information
tclune committed Nov 4, 2024
1 parent 7f972d6 commit 4c6ced2
Show file tree
Hide file tree
Showing 34 changed files with 34 additions and 92 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ add_subdirectory (pfio)
add_subdirectory (profiler)
add_subdirectory (generic)
add_subdirectory (generic3g)
add_subdirectory (field_utils)
add_subdirectory (field)
add_subdirectory (oomph) # temporary - will rename to generic when done
add_subdirectory (shared)
Expand Down
2 changes: 1 addition & 1 deletion MAPL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ esma_set_this()

esma_add_library (${this}
SRCS MAPL.F90
DEPENDENCIES MAPL.base MAPL.generic MAPL.pfio MAPL_cfio_r4 MAPL.gridcomps MAPL.orbit MAPL.griddedio MAPL.field_utils ${EXTDATA_TARGET}
DEPENDENCIES MAPL.base MAPL.generic MAPL.pfio MAPL_cfio_r4 MAPL.gridcomps MAPL.orbit MAPL.griddedio MAPL.field ${EXTDATA_TARGET}
ESMF::ESMF NetCDF::NetCDF_Fortran MPI::MPI_Fortran
TYPE SHARED
)
Expand Down
2 changes: 1 addition & 1 deletion base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ endif()

esma_add_library(
${this} SRCS ${srcs}
DEPENDENCIES MAPL.shared MAPL.constants MAPL.profiler MAPL.pfio MAPL_cfio_r4 MAPL.field_utils PFLOGGER::pflogger
DEPENDENCIES MAPL.shared MAPL.constants MAPL.profiler MAPL.pfio MAPL_cfio_r4 MAPL.field PFLOGGER::pflogger
GFTL_SHARED::gftl-shared-v2 GFTL_SHARED::gftl-shared-v1 GFTL::gftl-v2 GFTL::gftl-v1
ESMF::ESMF NetCDF::NetCDF_Fortran MPI::MPI_Fortran
TYPE SHARED)
Expand Down
18 changes: 17 additions & 1 deletion field/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ esma_set_this (OVERRIDE MAPL.field)

set(srcs
API.F90
FieldUtils.F90
FieldBLAS.F90
FieldPointerUtilities.F90
FieldDelta.F90
FieldUtilities.F90
FieldUnaryFunctions.F90
FieldBinaryOperations.F90
FieldUnits.F90
FieldCondensedArray.F90
FieldCondensedArray_private.F90
FieldDelta.F90
FieldBundleDelta.F90
VerticalStaggerLoc.F90
FieldCreate.F90
FieldReset.F90
Expand All @@ -11,9 +23,13 @@ set(srcs

list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")

if (BUILD_WITH_PFLOGGER)
find_package (PFLOGGER REQUIRED)
endif ()

esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.shared MAPL.esmf_utils ESMF::ESMF
DEPENDENCIES MAPL.shared MAPL.esmf_utils PFLOGGER::pflogger ESMF::ESMF udunits2f
TYPE SHARED
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 10 additions & 1 deletion field/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,13 @@ add_pfunit_ctest(MAPL.field.test_fieldreset
MAX_PES 1
)

add_dependencies(build-tests MAPL.field.test_fieldcreate)
add_pfunit_ctest(MAPL.field.test_utils
TEST_SOURCES Test_FieldBLAS.pf Test_FieldArithmetic.pf Test_FieldCondensedArray_private.pf
Test_FieldDelta.pf Test_FieldBundleDelta.pf
LINK_LIBRARIES MAPL.pfunit
EXTRA_INITIALIZE Initialize
EXTRA_USE MAPL_pFUnit_Initialize
OTHER_SOURCES field_utils_setup.F90
MAX_PES 4
)
add_dependencies(build-tests MAPL.field.test_fieldcreate MAPL.field.test_fieldreset MAPL.field.test_utils)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
49 changes: 0 additions & 49 deletions field_utils/CMakeLists.txt

This file was deleted.

32 changes: 0 additions & 32 deletions field_utils/tests/CMakeLists.txt

This file was deleted.

3 changes: 1 addition & 2 deletions generic3g/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ endif ()
esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.regridder_mgr MAPL.geom_mgr MAPL.GeomIO MAPL.esmf_utils MAPL.field MAPL.shared MAPL.profiler MAPL.base MAPL.hconfig_utils
PFLOGGER::pflogger GFTL_SHARED::gftl-shared-v2 GFTL::gftl-v2
ESMF::ESMF NetCDF::NetCDF_Fortran udunits2f PFLOGGER::pflogger GFTL_SHARED::gftl-shared-v2 GFTL::gftl-v2
TYPE SHARED
)

Expand Down Expand Up @@ -108,7 +108,6 @@ esma_add_fortran_submodules(

target_include_directories (${this} PUBLIC
$<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>)
target_link_libraries (${this} PUBLIC udunits2f MAPL.field_utils ESMF::ESMF NetCDF::NetCDF_Fortran)

if (PFUNIT_FOUND)
add_subdirectory(tests EXCLUDE_FROM_ALL)
Expand Down
2 changes: 1 addition & 1 deletion geom_mgr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set(srcs

esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.pfio MAPL.base MAPL.shared MAPL.field_utils MAPL.hconfig_utils GFTL::gftl-v2
DEPENDENCIES MAPL.pfio MAPL.base MAPL.shared MAPL.hconfig_utils GFTL::gftl-v2
TYPE SHARED
)

Expand Down
2 changes: 1 addition & 1 deletion mapl3g/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set (srcs

esma_add_library (${this}
SRCS ${srcs}
DEPENDENCIES MAPL.generic3g MAPL.pfio MAPL.cap3g MAPL.gridcomps MAPL.griddedio MAPL.field_utils ${EXTDATA_TARGET}
DEPENDENCIES MAPL.generic3g MAPL.pfio MAPL.cap3g MAPL.gridcomps MAPL.griddedio MAPL.field ${EXTDATA_TARGET}
ESMF::ESMF NetCDF::NetCDF_Fortran MPI::MPI_Fortran PFLOGGER::pflogger
TYPE SHARED
)
Expand Down
2 changes: 1 addition & 1 deletion pfunit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ set (srcs

esma_add_library (${this} EXCLUDE_FROM_ALL SRCS ${srcs} NOINSTALL TYPE SHARED)

target_link_libraries (${this} MAPL.shared MAPL.field_utils PFUNIT::pfunit ESMF::ESMF NetCDF::NetCDF_Fortran)
target_link_libraries (${this} MAPL.shared PFUNIT::pfunit ESMF::ESMF NetCDF::NetCDF_Fortran udunits2f)
set_target_properties (${this} PROPERTIES Fortran_MODULE_DIRECTORY ${include_${this}})
2 changes: 1 addition & 1 deletion regridder_mgr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set(srcs

esma_add_library(${this}
SRCS ${srcs}
DEPENDENCIES MAPL.geom_mgr MAPL.pfio MAPL.base MAPL.shared MAPL.field_utils GFTL::gftl-v2
DEPENDENCIES MAPL.geom_mgr MAPL.pfio MAPL.base MAPL.shared GFTL::gftl-v2
TYPE SHARED
)

Expand Down

0 comments on commit 4c6ced2

Please sign in to comment.