Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Move submodules into PeleLM. (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Mar 2, 2021
1 parent 8f7747b commit fe7f764
Show file tree
Hide file tree
Showing 19 changed files with 76 additions and 48 deletions.
15 changes: 15 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[submodule "Submodules/PelePhysics"]
path = Submodules/PelePhysics
url = https://github.com/AMReX-Combustion/PelePhysics.git
[submodule "Submodules/amrex"]
path = Submodules/amrex
url = https://github.com/AMReX-Codes/amrex.git
[submodule "Submodules/sundials"]
path = Submodules/sundials
url = https://github.com/LLNL/sundials.git
[submodule "Submodules/IAMR"]
path = Submodules/IAMR
url = https://github.com/AMReX-Codes/IAMR.git
[submodule "Submodules/googletest"]
path = Submodules/googletest
url = https://github.com/google/googletest.git
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ endif()
########################### AMReX #####################################

message(STATUS "AMReX Configure Section")
set(AMREX_SUBMOD_LOCATION "${CMAKE_SOURCE_DIR}/../amrex")
set(AMREX_SUBMOD_LOCATION "${CMAKE_SOURCE_DIR}/Submodules/amrex")
include(SetAmrexOptions)
list(APPEND CMAKE_MODULE_PATH "${AMREX_SUBMOD_LOCATION}/Tools/CMake")
if(PELELM_ENABLE_CUDA)
Expand All @@ -74,7 +74,7 @@ include(SetAmrexCompileFlags)

if(PELELM_ENABLE_SUNDIALS)
message(STATUS "SUNDIALS Configure Section")
set(SUNDIALS_SUBMOD_LOCATION "${CMAKE_SOURCE_DIR}/../sundials")
set(SUNDIALS_SUBMOD_LOCATION "${CMAKE_SOURCE_DIR}/Submodules/sundials")
include(SetSundialsOptions)
#BUILD_TESTING is an old CMake keyword so don't clear it in sundials configure
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
Expand Down Expand Up @@ -128,6 +128,6 @@ add_subdirectory(Exec)
if(PELELM_ENABLE_TESTS)
enable_testing()
include(CTest)
add_subdirectory(${CMAKE_SOURCE_DIR}/../googletest ${CMAKE_BINARY_DIR}/Submodules/googletest)
add_subdirectory(${CMAKE_SOURCE_DIR}/Submodules/googletest)
add_subdirectory(Testing)
endif()
9 changes: 5 additions & 4 deletions Exec/RegTests/ControlledInflow/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
TOP = ../../../..
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
10 changes: 5 additions & 5 deletions Exec/RegTests/EB_FlamePastCylinder/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TOP = ../../../..
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELE_PHYSICS_HOME ?= ${TOP}/PelePhysics
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
10 changes: 5 additions & 5 deletions Exec/RegTests/EB_FlowPastCylinder/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TOP = ../../../..
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELE_PHYSICS_HOME ?= ${TOP}/PelePhysics
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
10 changes: 5 additions & 5 deletions Exec/RegTests/FlameSheet/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TOP = ../../../..
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELE_PHYSICS_HOME ?= ${TOP}/PelePhysics
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
9 changes: 5 additions & 4 deletions Exec/RegTests/ForcedHIT/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
TOP = ../../../../
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
9 changes: 5 additions & 4 deletions Exec/RegTests/HIT/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
TOP = ../../../../
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
9 changes: 5 additions & 4 deletions Exec/RegTests/NaturalConvection/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
TOP = ../../../../
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
10 changes: 5 additions & 5 deletions Exec/RegTests/PeriodicCases/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
TOP = ../../../..
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELE_PHYSICS_HOME ?= ${TOP}/PelePhysics
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
9 changes: 5 additions & 4 deletions Exec/RegTests/TaylorGreen/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
TOP = ../../../../
AMREX_HOME ?= ${TOP}/amrex
IAMR_HOME ?= ${TOP}/IAMR
PELELM_HOME ?= ${TOP}/PeleLM
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

#
# Build configuration
Expand Down
7 changes: 5 additions & 2 deletions Exec/RegTests/TurbInflow/GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
AMREX_HOME ?= ../../../../amrex
IAMR_HOME ?= ../../../../IAMR
PELELM_HOME = ../../..
SUBMODS = ${PELELM_HOME}/Submodules
AMREX_HOME ?= ${SUBMODS}/amrex
IAMR_HOME ?= ${SUBMODS}/IAMR
PELE_PHYSICS_HOME ?= ${SUBMODS}/PelePhysics

DEBUG = FALSE
#DEBUG = TRUE
Expand Down
1 change: 1 addition & 0 deletions Submodules/IAMR
Submodule IAMR added at a71fe0
1 change: 1 addition & 0 deletions Submodules/PelePhysics
Submodule PelePhysics added at cd6fe5
1 change: 1 addition & 0 deletions Submodules/amrex
Submodule amrex added at b7ddf2
1 change: 1 addition & 0 deletions Submodules/googletest
Submodule googletest added at e8b478
1 change: 1 addition & 0 deletions Submodules/sundials
Submodule sundials added at 73c280
4 changes: 2 additions & 2 deletions Tools/CMake/BuildPeleLMExe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ function(build_pelelm_exe pelelm_exe_name)

target_include_directories(${pelelm_exe_name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

set(PELE_PHYSICS_SRC_DIR ${CMAKE_SOURCE_DIR}/../PelePhysics)
set(PELE_PHYSICS_SRC_DIR ${CMAKE_SOURCE_DIR}/Submodules/PelePhysics)
set(PELE_PHYSICS_BIN_DIR ${CMAKE_BINARY_DIR}/Submodules/PelePhysics/${pelelm_exe_name})

set(IAMR_SRC_DIR ${CMAKE_SOURCE_DIR}/../IAMR/Source)
set(IAMR_SRC_DIR ${CMAKE_SOURCE_DIR}/Submodules/IAMR/Source)
set(IAMR_BIN_DIR ${CMAKE_BINARY_DIR}/Submodules/IAMR/Source/${pelelm_exe_name})

set(SRC_DIR ${CMAKE_SOURCE_DIR}/Source)
Expand Down
2 changes: 1 addition & 1 deletion Tools/Make/Make.PeleLM
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
EBASE = PeleLM
PELE_PHYSICS_HOME ?= $(TOP)/PelePhysics
PELE_PHYSICS_HOME ?= $(SUBMODS)/PelePhysics

ifeq ($(USE_SUNDIALS_PP),TRUE)
include $(PELE_PHYSICS_HOME)/ThirdParty/Make.ThirdParty
Expand Down

0 comments on commit fe7f764

Please sign in to comment.