diff --git a/Build/cmake_cuda_SpecifyToolKit.sh b/Build/cmake_cuda_SpecifyToolKit.sh new file mode 100755 index 000000000..23f679f28 --- /dev/null +++ b/Build/cmake_cuda_SpecifyToolKit.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Example CMake config script for an OSX laptop with OpenMPI + +cmake -DCMAKE_INSTALL_PREFIX:PATH=./install \ + -DMPIEXEC_PREFLAGS:STRING=--oversubscribe \ + -DCMAKE_BUILD_TYPE:STRING=Release \ + -DERF_DIM:STRING=3 \ + -DERF_ENABLE_MPI:BOOL=ON \ + -DERF_ENABLE_CUDA:BOOL=ON \ + -DERF_ENABLE_TESTS:BOOL=ON \ + -DERF_ENABLE_FCOMPARE:BOOL=ON \ + -DERF_ENABLE_DOCUMENTATION:BOOL=OFF \ + -DCUDAToolkit_ROOT=/usr/local/cuda-12.4/bin \ + -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON \ + .. && make -j8 diff --git a/Source/BoundaryConditions/BoundaryConditions_cons.cpp b/Source/BoundaryConditions/BoundaryConditions_cons.cpp index 68792d266..d17b962d4 100644 --- a/Source/BoundaryConditions/BoundaryConditions_cons.cpp +++ b/Source/BoundaryConditions/BoundaryConditions_cons.cpp @@ -411,7 +411,7 @@ void ERFPhysBCFunct_cons::impose_vertical_cons_bcs (const Array4& dest_arr if (m_z_phys_nd) { const auto& bx_lo = lbound(bx); const auto& bx_hi = ubound(bx); - + const BCRec* bc_ptr_h = bcrs.data(); // Neumann conditions (d/dn = 0) must be aware of the surface normal with terrain. // An additional source term arises from d/dx & d/dy & met_h_xi/eta/zeta. //===================================================================================== @@ -420,7 +420,7 @@ void ERFPhysBCFunct_cons::impose_vertical_cons_bcs (const Array4& dest_arr for (int n = 0; n < ncomp; n++) { // Hit for Neumann condition at kmin int dest_comp = icomp+n; - int l_bc_type = bc_ptr[n].lo(2); + int l_bc_type = bc_ptr_h[n].lo(2); if(l_bc_type == ERFBCType::foextrap) { // Loop over ghost cells in bottom XY-plane (valid box)