@@ -27,33 +27,13 @@ set(CMAKE_CXX_FLAGS_RELEASE "")
27
27
set (CMAKE_Fortran_FORMAT_FIXED_FLAG "" )
28
28
set (CMAKE_Fortran_FORMAT_FREE_FLAG "" )
29
29
30
- # ATS libraries, previously in userdefined.cmake, but which excluded in cime now.
30
+ # RPF/WIP - much of the hardcoded cmake for linking ATS libraries
31
+ # has been moved to components/cmake/build_model.cmake, but a few things remain.
31
32
set (AMANZI_TPLS_DIR "$ENV{AMANZI_TPLS_DIR} " )
32
33
set (ATS_DIR "$ENV{ATS_DIR} " )
33
34
if (COMP_NAME STREQUAL elm)
34
- if (NOT ${AMANZI_TPLS_DIR} STREQUAL "" )
35
-
36
- string (APPEND CMAKE_Fortran_FLAGS " -I${AMANZI_TPLS_DIR} /trilinos-15-1-0/include" )
37
- string (APPEND CMAKE_Fortran_FLAGS " -I${AMANZI_TPLS_DIR} /SEACAS/include " )
38
- string (APPEND CMAKE_Fortran_FLAGS " -I${AMANZI_TPLS_DIR} /petsc-3.20/include -I${AMANZI_TPLS_DIR} /pflotran/src " )
39
- if (NOT ${ATS_DIR} STREQUAL "" )
40
- string (APPEND CPPDEFS " -DUSE_ATS_LIB " )
41
- string (APPEND CMAKE_Fortran_FLAGS " -I${ATS_DIR} /include " )
42
- endif ()
43
- endif ()
44
- endif ()
45
- if (COMP_NAME STREQUAL cpl)
46
- string (APPEND CMAKE_EXE_LINKER_FLAGS " -lstdc++" )
47
- if (NOT ${AMANZI_TPLS_DIR} STREQUAL "" )
48
- string (APPEND CMAKE_EXE_LINKER_FLAGS " -L${AMANZI_TPLS_DIR} /lib" )
49
- string (APPEND CMAKE_EXE_LINKER_FLAGS " -L${AMANZI_TPLS_DIR} /trilinos-15-1-0/lib" )
50
- string (APPEND CMAKE_EXE_LINKER_FLAGS " -L${AMANZI_TPLS_DIR} /SEACAS/lib " )
51
- string (APPEND CMAKE_EXE_LINKER_FLAGS " -L${AMANZI_TPLS_DIR} /petsc-3.20/lib -L${AMANZI_TPLS_DIR} /pflotran/src " )
52
- if (NOT ${ATS_DIR} STREQUAL "" )
53
- string (APPEND CMAKE_EXE_LINKER_FLAGS " -L${ATS_DIR} /lib -lerror_handling -latk -lfunctions -lgeometry -lgeochemutil -lgeochemsolvers -lgeochembase -lgeochemrxns -lgeochemistry -lmesh -lmesh_simple -lmesh_mstk -lmesh_extracted -lmesh_logical -lmesh_factory -ldbg -lwhetstone -ldata_structures -lmesh_functions -loutput -lstate -lsolvers -ltime_integration -loperators -lpks -lchemistry_pk -ltransport -lshallow_water -lats_operators -lats_eos -lats_surf_subsurf -lats_generic_evals -lats_column_integrator -lats_pks -lats_energy_relations -lats_energy -lats_flow_relations -lats_flow -lats_transport -lats_deform -lats_surface_balance -lats_bgc -lats_mpc_relations -lats_mpc -lats_executable -lelm_ats" )
54
- endif ()
35
+ if (NOT ${ATS_DIR} STREQUAL "" )
36
+ string (APPEND CPPDEFS " -DUSE_ATS_LIB " )
37
+ string (APPEND CMAKE_Fortran_FLAGS " -I${ATS_DIR} /include " )
55
38
endif ()
56
- endif ()
57
-
58
-
59
- string (APPEND CPPDEFS " -DCPL_BYPASS" )
39
+ endif ()
0 commit comments