Skip to content

Commit

Permalink
Checking in some minor modifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce J Palmer committed Feb 14, 2023
1 parent 4245484 commit 3ada77d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
14 changes: 11 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,17 @@ if( NOT CMAKE_CXX_FLAGS_DEBUG )
set(CMAKE_CXX_FLAGS_DEBUG "-g")
endif()

if (BMX_DEBUG EQUAL TRUE)
add_compile_definitions(DEBUG)
endif()


if( NOT CMAKE_CXX_FLAGS_RELEASE )
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
if (BMX_DEBUG EQUAL TRUE)
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
else()
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
endif()
endif()

# Load utilities and BMX options module
Expand Down Expand Up @@ -93,8 +102,7 @@ elseif (BMX_GPU_BACKEND STREQUAL HIP)
elseif ()
set(BMX_DPCPP OFF )
set(BMX_CUDA OFF )
set(BMX_HIP OFF )
endif ()
endif()

# CSG support
option( BMX_CSG "Build with CSG support" OFF)
Expand Down
2 changes: 1 addition & 1 deletion SUBMODULE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cd subprojects/amrex
git checkout development
git pull
cd ../
git add
git add amrex
git commit
git push
```
5 changes: 3 additions & 2 deletions src/bmx.H
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ class bmx : public AmrCore
Real time,
int ngrow) override;

// Evaluate gradients of all concentration fields
void compute_grad_X (int lev, Real time, MultiFab& gradx_X_k, MultiFab& grady_X_k, MultiFab& gradz_X_k);

////////////////////////////////////////////////////////////////////////////
//
// Diffusion
Expand Down Expand Up @@ -197,8 +200,6 @@ class bmx : public AmrCore
void GetDataVolFrac (int lev, Real time, Vector<MultiFab *> & data, int icomp,
Vector<Real> & datatime);

void compute_grad_X (int lev, Real time, MultiFab& gradx_X_k, MultiFab& grady_X_k, MultiFab& gradz_X_k);

void AllocateArrays (int lev);

void RegridArrays (int lev);
Expand Down

0 comments on commit 3ada77d

Please sign in to comment.