Skip to content

Commit

Permalink
prepend REMORA_ onto all files
Browse files Browse the repository at this point in the history
  • Loading branch information
hklion committed Dec 6, 2024
1 parent b5813a5 commit b31f712
Show file tree
Hide file tree
Showing 58 changed files with 136 additions and 174 deletions.
41 changes: 18 additions & 23 deletions CMake/BuildREMORAExe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ function(build_remora_lib remora_lib_name)
include(${CMAKE_SOURCE_DIR}/CMake/SetREMORACompileFlags.cmake)
set_remora_compile_flags(${remora_lib_name})

set(REMORA_EOS_DIR "${CMAKE_SOURCE_DIR}/Source")
target_sources(${remora_lib_name} PRIVATE
${REMORA_EOS_DIR}/EOS.H)
target_include_directories(${remora_lib_name} SYSTEM PUBLIC ${REMORA_EOS_DIR})

if(REMORA_ENABLE_PARTICLES)
target_sources(${remora_lib_name} PRIVATE
${SRC_DIR}/Particles/REMORA_PC_Evolve.cpp
Expand All @@ -32,15 +27,15 @@ function(build_remora_lib remora_lib_name)

if(REMORA_ENABLE_PNETCDF)
target_sources(${remora_lib_name} PRIVATE
${SRC_DIR}/IO/NCInterface.H
${SRC_DIR}/IO/NCPlotFile.H
${SRC_DIR}/IO/NCFile.H
${SRC_DIR}/IO/NCInterface.cpp
${SRC_DIR}/IO/NCPlotFile.cpp
${SRC_DIR}/IO/NCFile.cpp
${SRC_DIR}/IO/ReadFromInitNetcdf.cpp
${SRC_DIR}/IO/ReadFromBdryNetcdf.cpp
${SRC_DIR}/BoundaryConditions/BoundaryConditions_netcdf.cpp
${SRC_DIR}/IO/REMORA_NCInterface.H
${SRC_DIR}/IO/REMORA_NCPlotFile.H
${SRC_DIR}/IO/REMORA_NCFile.H
${SRC_DIR}/IO/REMORA_NCInterface.cpp
${SRC_DIR}/IO/REMORA_NCPlotFile.cpp
${SRC_DIR}/IO/REMORA_NCFile.cpp
${SRC_DIR}/IO/REMORA_ReadFromInitNetcdf.cpp
${SRC_DIR}/IO/REMORA_ReadFromBdryNetcdf.cpp
${SRC_DIR}/BoundaryConditions/REMORA_BoundaryConditions_netcdf.cpp
${SRC_DIR}/Initialization/REMORA_init_from_netcdf.cpp)
target_compile_definitions(${remora_lib_name} PUBLIC REMORA_USE_NETCDF)
endif()
Expand All @@ -51,25 +46,25 @@ function(build_remora_lib remora_lib_name)

target_sources(${remora_lib_name}
PRIVATE
${SRC_DIR}/Derive.cpp
${SRC_DIR}/REMORA_Derive.cpp
${SRC_DIR}/REMORA.cpp
${SRC_DIR}/REMORA_SumIQ.cpp
${SRC_DIR}/REMORA_Tagging.cpp
${SRC_DIR}/BoundaryConditions/BoundaryConditions_cons.cpp
${SRC_DIR}/BoundaryConditions/BoundaryConditions_xvel.cpp
${SRC_DIR}/BoundaryConditions/BoundaryConditions_yvel.cpp
${SRC_DIR}/BoundaryConditions/BoundaryConditions_zvel.cpp
${SRC_DIR}/BoundaryConditions/REMORA_BoundaryConditions_cons.cpp
${SRC_DIR}/BoundaryConditions/REMORA_BoundaryConditions_xvel.cpp
${SRC_DIR}/BoundaryConditions/REMORA_BoundaryConditions_yvel.cpp
${SRC_DIR}/BoundaryConditions/REMORA_BoundaryConditions_zvel.cpp
${SRC_DIR}/BoundaryConditions/REMORA_FillPatch.cpp
${SRC_DIR}/BoundaryConditions/REMORA_FillPatcher.cpp
${SRC_DIR}/BoundaryConditions/REMORA_PhysBCFunct.cpp
${SRC_DIR}/Initialization/REMORA_init.cpp
${SRC_DIR}/Initialization/REMORA_init1d.cpp
${SRC_DIR}/Initialization/REMORA_init_bcs.cpp
${SRC_DIR}/Initialization/REMORA_make_new_level.cpp
${SRC_DIR}/IO/Checkpoint.cpp
${SRC_DIR}/IO/Plotfile.cpp
${SRC_DIR}/IO/writeJobInfo.cpp
${SRC_DIR}/IO/console_io.cpp
${SRC_DIR}/IO/REMORA_Checkpoint.cpp
${SRC_DIR}/IO/REMORA_Plotfile.cpp
${SRC_DIR}/IO/REMORA_writeJobInfo.cpp
${SRC_DIR}/IO/REMORA_console_io.cpp
${SRC_DIR}/TimeIntegration/REMORA_Advance.cpp
${SRC_DIR}/TimeIntegration/REMORA_advance_2d.cpp
${SRC_DIR}/TimeIntegration/REMORA_advance_2d_onestep.cpp
Expand Down
2 changes: 1 addition & 1 deletion CMake/SetAmrexOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(AMReX_MPI ${REMORA_ENABLE_MPI})
set(AMReX_OMP ${REMORA_ENABLE_OPENMP})
set(AMReX_PRECISION "${REMORA_PRECISION}" CACHE STRING "Floating point precision" FORCE)
set(AMReX_EB OFF)
set(AMReX_FORTRAN_INTREMORAACES OFF)
set(AMReX_FORTRAN_INTERFACES OFF)
set(AMReX_LINEAR_SOLVERS OFF)
set(AMReX_AMRDATA OFF)
set(AMReX_PARTICLES OFF)
Expand Down
7 changes: 3 additions & 4 deletions Exec/Advection/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/Channel_Test/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/DoubleGyre/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/DoublyPeriodic/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/IdealMiniGrid/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/OCCAMS/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/ParticlesOverSeaMount/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/Seamount/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/Upwelling/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
7 changes: 3 additions & 4 deletions Exec/Upwelling_ML/prob.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "prob.H"
#include "prob_common.H"
#include "REMORA_prob_common.H"

#include "EOS.H"
#include "AMReX_ParmParse.H"
#include "AMReX_MultiFab.H"
#include "IndexDefines.H"
#include "DepthStretchTransform.H"
#include "REMORA_IndexDefines.H"
#include "REMORA_DepthStretchTransform.H"

using namespace amrex;

Expand Down
12 changes: 6 additions & 6 deletions Source/BoundaryConditions/Make.package
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
CEXE_sources += BoundaryConditions_xvel.cpp
CEXE_sources += BoundaryConditions_yvel.cpp
CEXE_sources += BoundaryConditions_zvel.cpp
CEXE_sources += BoundaryConditions_cons.cpp
CEXE_sources += REMORA_BoundaryConditions_xvel.cpp
CEXE_sources += REMORA_BoundaryConditions_yvel.cpp
CEXE_sources += REMORA_BoundaryConditions_zvel.cpp
CEXE_sources += REMORA_BoundaryConditions_cons.cpp

ifeq ($(USE_PNETCDF), TRUE)
CEXE_sources += BoundaryConditions_netcdf.cpp
CEXE_sources += REMORA_BoundaryConditions_netcdf.cpp
endif

CEXE_sources += REMORA_FillPatch.cpp
Expand All @@ -14,4 +14,4 @@ CEXE_sources += REMORA_PhysBCFunct.cpp
CEXE_headers += REMORA_PhysBCFunct.H

CEXE_headers += REMORA_FillPatcher.H
CEXE_headers += TimeInterpolatedData.H
CEXE_headers += REMORA_TimeInterpolatedData.H
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "AMReX_PhysBCFunct.H"
#include <REMORA_PhysBCFunct.H>
#include <prob_common.H>
#include <REMORA_prob_common.H>

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Source/BoundaryConditions/REMORA_FillPatch.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <REMORA.H>
#include <REMORA_PhysBCFunct.H>
#include <IndexDefines.H>
#include <TimeInterpolatedData.H>
#include <REMORA_IndexDefines.H>
#include <REMORA_TimeInterpolatedData.H>

using namespace amrex;

Expand Down
6 changes: 3 additions & 3 deletions Source/BoundaryConditions/REMORA_PhysBCFunct.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include "AMReX_TypeTraits.H"
#include "AMReX_Orientation.H"

#include <TimeInterpolatedData.H>
#include <IndexDefines.H>
#include <DataStruct.H>
#include <REMORA_TimeInterpolatedData.H>
#include <REMORA_IndexDefines.H>
#include <REMORA_DataStruct.H>

using PlaneVector = amrex::Vector<amrex::FArrayBox>;

Expand Down
2 changes: 1 addition & 1 deletion Source/BoundaryConditions/REMORA_PhysBCFunct.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "AMReX_PhysBCFunct.H"
#include "IndexDefines.H"
#include "REMORA_IndexDefines.H"
#include <REMORA_PhysBCFunct.H>

using namespace amrex;
Expand Down
15 changes: 0 additions & 15 deletions Source/EOS.H

This file was deleted.

24 changes: 12 additions & 12 deletions Source/IO/Make.package
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@

CEXE_sources += Plotfile.cpp
CEXE_sources += Checkpoint.cpp
CEXE_sources += writeJobInfo.cpp
CEXE_sources += REMORA_Plotfile.cpp
CEXE_sources += REMORA_Checkpoint.cpp
CEXE_sources += REMORA_writeJobInfo.cpp

CEXE_sources += console_io.cpp
CEXE_sources += REMORA_console_io.cpp

ifeq ($(USE_PNETCDF), TRUE)
CEXE_sources += ReadFromInitNetcdf.cpp
CEXE_sources += ReadFromBdryNetcdf.cpp
CEXE_sources += NCInterface.cpp
CEXE_sources += NCPlotFile.cpp
CEXE_sources += NCFile.cpp
CEXE_headers += NCInterface.H
CEXE_headers += NCPlotFile.H
CEXE_headers += NCFile.H
CEXE_sources += REMORA_ReadFromInitNetcdf.cpp
CEXE_sources += REMORA_ReadFromBdryNetcdf.cpp
CEXE_sources += REMORA_NCInterface.cpp
CEXE_sources += REMORA_NCPlotFile.cpp
CEXE_sources += REMORA_NCFile.cpp
CEXE_headers += REMORA_NCInterface.H
CEXE_headers += REMORA_NCPlotFile.H
CEXE_headers += REMORA_NCFile.H
endif
4 changes: 0 additions & 4 deletions Source/IO/NCPlotFile.H

This file was deleted.

File renamed without changes.
6 changes: 3 additions & 3 deletions Source/IO/NCFile.H → Source/IO/REMORA_NCFile.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _NCFILE_H_
#define _NCFILE_H_
#ifndef _REMORA_NCFILE_H_
#define _REMORA_NCFILE_H_

#include <sstream>
#include <string>
Expand All @@ -9,7 +9,7 @@
#include "AMReX_FArrayBox.H"
#include "AMReX_IArrayBox.H"
// this includes pnetcdf.h, and mpi.h
#include "NCInterface.H"
#include "REMORA_NCInterface.H"

using PlaneVector = amrex::Vector<amrex::FArrayBox>;

Expand Down
4 changes: 2 additions & 2 deletions Source/IO/NCFile.cpp → Source/IO/REMORA_NCFile.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <string>

#include "NCFile.H"
#include "NCInterface.H"
#include "REMORA_NCFile.H"
#include "REMORA_NCInterface.H"


std::string ReadNetCDFVarAttrStr (const std::string& fname,
Expand Down
6 changes: 3 additions & 3 deletions Source/IO/NCInterface.H → Source/IO/REMORA_NCInterface.H
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* OOP-like manner.
*/

#ifndef NC_INTREMORAACE_H
#define NC_INTREMORAACE_H
#ifndef REMORA_NC_INTERFACE_H
#define REMORA_NC_INTERFACE_H

#ifdef REMORA_USE_NETCDF
#include <string>
Expand Down Expand Up @@ -382,4 +382,4 @@ public:

#endif

#endif /* NC_INTREMORAACE_H */
#endif /* NC_INTERFACE_H */
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <cstdio>

#include "NCInterface.H"
#include "REMORA_NCInterface.H"
#include <AMReX.H>
#include <AMReX_Print.H>

Expand Down
4 changes: 4 additions & 0 deletions Source/IO/REMORA_NCPlotFile.H
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifndef _REMORA_NCPLOTFILE_H_
#define _REMORA_NCPLOTFILE_H_
extern std::string inputs_name;
#endif
Loading

0 comments on commit b31f712

Please sign in to comment.