From ce146cad34231e4270950b261cc214388caf9353 Mon Sep 17 00:00:00 2001 From: David Blom Date: Wed, 13 Apr 2016 11:09:41 +0200 Subject: [PATCH] Fix warnings of cppcheck (#239) --- .../testsuite-sdc-fsi/SDCTubeFlowBDFLinearizedSolidSolver.C | 3 ++- .../testsuite-sdc-fsi/SDCTubeFlowExplicitLinearSolidSolver.C | 3 ++- .../testsuite-sdc-fsi/SDCTubeFlowLinearizedSolidSolver.C | 3 ++- src/tests/testsuite-sdc/test_sdc.C | 5 ----- wercker.yml | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/tests/testsuite-sdc-fsi/SDCTubeFlowBDFLinearizedSolidSolver.C b/src/tests/testsuite-sdc-fsi/SDCTubeFlowBDFLinearizedSolidSolver.C index acd7ef10..3cd057c0 100644 --- a/src/tests/testsuite-sdc-fsi/SDCTubeFlowBDFLinearizedSolidSolver.C +++ b/src/tests/testsuite-sdc-fsi/SDCTubeFlowBDFLinearizedSolidSolver.C @@ -22,7 +22,8 @@ namespace tubeflow int timeOrder ) : - TubeFlowLinearizedSolidSolver( N, nu, rho, h, L, dt, G, E0, r0, T, timeOrder ) + TubeFlowLinearizedSolidSolver( N, nu, rho, h, L, dt, G, E0, r0, T, timeOrder ), + k( 0 ) {} SDCTubeFlowBDFLinearizedSolidSolver::~SDCTubeFlowBDFLinearizedSolidSolver() diff --git a/src/tests/testsuite-sdc-fsi/SDCTubeFlowExplicitLinearSolidSolver.C b/src/tests/testsuite-sdc-fsi/SDCTubeFlowExplicitLinearSolidSolver.C index 298b5452..198f0f1d 100644 --- a/src/tests/testsuite-sdc-fsi/SDCTubeFlowExplicitLinearSolidSolver.C +++ b/src/tests/testsuite-sdc-fsi/SDCTubeFlowExplicitLinearSolidSolver.C @@ -22,7 +22,8 @@ namespace tubeflow scalar T ) : - TubeFlowExplicitLinearSolidSolver( N, nu, rho, h, L, dt, G, E0, r0, p0, T ) + TubeFlowExplicitLinearSolidSolver( N, nu, rho, h, L, dt, G, E0, r0, p0, T ), + k( 0 ) {} SDCTubeFlowExplicitLinearSolidSolver::~SDCTubeFlowExplicitLinearSolidSolver() diff --git a/src/tests/testsuite-sdc-fsi/SDCTubeFlowLinearizedSolidSolver.C b/src/tests/testsuite-sdc-fsi/SDCTubeFlowLinearizedSolidSolver.C index 77611d52..18c63ecd 100644 --- a/src/tests/testsuite-sdc-fsi/SDCTubeFlowLinearizedSolidSolver.C +++ b/src/tests/testsuite-sdc-fsi/SDCTubeFlowLinearizedSolidSolver.C @@ -21,7 +21,8 @@ namespace tubeflow scalar T ) : - TubeFlowLinearizedSolidSolver( N, nu, rho, h, L, dt, G, E0, r0, T ) + TubeFlowLinearizedSolidSolver( N, nu, rho, h, L, dt, G, E0, r0, T ), + k( 0 ) {} SDCTubeFlowLinearizedSolidSolver::~SDCTubeFlowLinearizedSolidSolver() diff --git a/src/tests/testsuite-sdc/test_sdc.C b/src/tests/testsuite-sdc/test_sdc.C index c6850835..ffce4189 100644 --- a/src/tests/testsuite-sdc/test_sdc.C +++ b/src/tests/testsuite-sdc/test_sdc.C @@ -353,10 +353,6 @@ TEST( SDCSourceTermTest, SDC ) TEST( CosTest, SDC ) { - std::string rule = "gauss-lobatto"; - - // rule = "uniform"; - // rule = "clenshaw-curtis"; int nbNodes = 3; scalar tol = 1.0e-9; @@ -398,7 +394,6 @@ TEST( CosTest, SDC ) TEST( OscillatorTest, SDC ) { - std::string rule = "gauss-lobatto"; int nbNodes = 3; scalar tol = 1.0e-11; diff --git a/wercker.yml b/wercker.yml index e560595d..507aea78 100644 --- a/wercker.yml +++ b/wercker.yml @@ -38,7 +38,7 @@ build: export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin export FOAM_INST_DIR=`pwd` - sed -i s/"CC = g++ -m64"/"CC = mpicxx -m64"/g foam-extend-3.2/wmake/rules/linux64Gcc/c++ + sed -i s/"CC = g++ -m64"/"CC = mpicxx -m64 -DEIGEN_INITIALIZE_MATRICES_BY_NAN"/g foam-extend-3.2/wmake/rules/linux64Gcc/c++ sed -i s/"c++DBUG = -ggdb3 -DFULLDEBUG"/"c++DBUG = -g -DFULLDEBUG -DEIGEN_INITIALIZE_MATRICES_BY_NAN --coverage -fprofile-arcs -ftest-coverage"/g foam-extend-3.2/wmake/rules/linux64Gcc/c++Debug cd foam-extend-3.2