Skip to content

Commit

Permalink
Merge pull request #1346 from mfem/hotfix-4.1
Browse files Browse the repository at this point in the history
mfem-4.1 hotfixes [hotfix-4.1]
  • Loading branch information
tzanio committed Mar 11, 2020
2 parents d9c4909 + 6641bd7 commit 8dbbcfc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions miniapps/electromagnetics/joule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ static double mj_ = 0.0;
static double sj_ = 0.0;
static double wj_ = 0.0;

// Initialize variables used in joule_solver.cpp
int electromagnetics::SOLVER_PRINT_LEVEL = 0;
int electromagnetics::STATIC_COND = 0;

int main(int argc, char *argv[])
{
// 1. Initialize MPI.
Expand Down
9 changes: 5 additions & 4 deletions miniapps/electromagnetics/joule_solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ namespace electromagnetics
{

// Some global variable for convenience
static const double SOLVER_TOL = 1.0e-9;
static const int SOLVER_MAX_IT = 1000;
static int SOLVER_PRINT_LEVEL = 0;
static int STATIC_COND = 0;
const double SOLVER_TOL = 1.0e-9;
const int SOLVER_MAX_IT = 1000;
// Initialized in joule.cpp and used in joule_solver.cpp:
extern int SOLVER_PRINT_LEVEL;
extern int STATIC_COND;

// These are defined in joule.cpp
void edot_bc(const Vector &x, Vector &E);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ if (MFEM_USE_MPI)
target_compile_definitions(psedov_tests_cuda PUBLIC MFEM_SEDOV_DEVICE="cuda")
target_link_libraries(psedov_tests_cuda mfem)

add_executable(psedov_tests_cuda_uvm ${SEDOV_TESTS_SRCS})
add_executable(psedov_tests_cuda_uvm ${PAR_SEDOV_TESTS_SRCS})
target_compile_definitions(psedov_tests_cuda_uvm PUBLIC MFEM_SEDOV_MPI=1)
target_compile_definitions(psedov_tests_cuda_uvm PUBLIC MFEM_SEDOV_TESTS=1)
target_compile_definitions(psedov_tests_cuda_uvm PUBLIC MFEM_SEDOV_DEVICE="cuda:uvm")
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ punit_tests: $(PAR_MAIN_OBJ) $(OBJECT_FILES) $(MFEM_LIB_FILE) $(CONFIG_MK) $(DAT

# Note: in this rule, we always use the full path to the source file as a
# workaround for an issue with coveralls.
%.o: $(SRC)%.cpp $(HEADER_FILES) $(CONFIG_MK)
$(OBJECT_FILES) $(SEQ_MAIN_OBJ) $(PAR_MAIN_OBJ): %.o: $(SRC)%.cpp \
$(HEADER_FILES) $(CONFIG_MK)
@mkdir -p $(@D)
$(CCC) -c $(abspath $(<)) $(MFEM_FLAGS) $(INCLUDES) -o $(@)

Expand Down

0 comments on commit 8dbbcfc

Please sign in to comment.