Skip to content
Snippets Groups Projects
Unverified Commit c8fbb396 authored by williamfgc's avatar williamfgc Committed by GitHub
Browse files

Merge pull request #305 from williamfgc/warnings

Resolving more cdash warnings issue #300
parents 443a914a 9efca903
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ adios2_define_variable(adios2_IO *io, const char *name, const adios2_type type, ...@@ -48,7 +48,7 @@ adios2_define_variable(adios2_IO *io, const char *name, const adios2_type type,
switch (type) switch (type)
{ {
case (adios2_type_string): case (adios2_type_string):
dynamic_cast<adios2::Variable<std::string> *>( variable = dynamic_cast<adios2::Variable<std::string> *>(
&ioCpp.DefineVariable<char>(name, shapeV, startV, countV, &ioCpp.DefineVariable<char>(name, shapeV, startV, countV,
constantSizeBool)); constantSizeBool));
; ;
......
...@@ -22,7 +22,7 @@ contains ...@@ -22,7 +22,7 @@ contains
integer, intent(out) :: ierr integer, intent(out) :: ierr
call adios2_set_parameter_f2c( io, TRIM(ADJUSTL(key))//char(0), & call adios2_set_parameter_f2c( io, TRIM(ADJUSTL(key))//char(0), &
& TRIM(ADJUSTL(value))//char(0) ) & TRIM(ADJUSTL(value))//char(0), ierr )
end subroutine end subroutine
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#endif #endif
#define DEFAULT_CONFIG_STR str(DEFAULT_CONFIG) #define DEFAULT_CONFIG_STR str(DEFAULT_CONFIG)
static int rank_saved;
adios2::ADIOS *ad = nullptr; adios2::ADIOS *ad = nullptr;
adios2::Engine *bpWriter = nullptr; adios2::Engine *bpWriter = nullptr;
adios2::Variable<double> *varT = nullptr; adios2::Variable<double> *varT = nullptr;
...@@ -29,7 +28,6 @@ adios2::Variable<unsigned int> *varGndx = nullptr; ...@@ -29,7 +28,6 @@ adios2::Variable<unsigned int> *varGndx = nullptr;
IO::IO(const Settings &s, MPI_Comm comm) IO::IO(const Settings &s, MPI_Comm comm)
{ {
rank_saved = s.rank;
m_outputfilename = s.outputfile + ".bp"; m_outputfilename = s.outputfile + ".bp";
ad = new adios2::ADIOS(std::string(DEFAULT_CONFIG_STR), comm, ad = new adios2::ADIOS(std::string(DEFAULT_CONFIG_STR), comm,
adios2::DebugON); adios2::DebugON);
......
...@@ -26,8 +26,8 @@ public: ...@@ -26,8 +26,8 @@ public:
TEST_F(BPWriteTypes, ADIOS2BPWriteTypes) TEST_F(BPWriteTypes, ADIOS2BPWriteTypes)
{ {
int rank(0);
#ifdef ADIOS2_HAVE_MPI #ifdef ADIOS2_HAVE_MPI
int rank(0);
int size(0); int size(0);
adios2_ADIOS *adiosH = adios2_init(MPI_COMM_WORLD, adios2_debug_mode_on); adios2_ADIOS *adiosH = adios2_init(MPI_COMM_WORLD, adios2_debug_mode_on);
MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_rank(MPI_COMM_WORLD, &rank);
......
...@@ -19,11 +19,6 @@ protected: ...@@ -19,11 +19,6 @@ protected:
TEST_F(ADIOSDefineVariableTest, DefineGlobalValue) TEST_F(ADIOSDefineVariableTest, DefineGlobalValue)
{ {
int mpiRank = 0, mpiSize = 1;
#ifdef ADIOS2_HAVE_MPI
MPI_Comm_rank(MPI_COMM_WORLD, &mpiRank);
MPI_Comm_size(MPI_COMM_WORLD, &mpiSize);
#endif
std::string name = std::string("globalValue"); std::string name = std::string("globalValue");
// Define ADIOS global value // Define ADIOS global value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment