Skip to content
Snippets Groups Projects
Commit 9efca903 authored by Godoy, William's avatar Godoy, William
Browse files

Resolving more cdash warnings issue #300

parent 443a914a
No related branches found
No related tags found
1 merge request!305Resolving more cdash warnings issue #300
......@@ -48,7 +48,7 @@ adios2_define_variable(adios2_IO *io, const char *name, const adios2_type type,
switch (type)
{
case (adios2_type_string):
dynamic_cast<adios2::Variable<std::string> *>(
variable = dynamic_cast<adios2::Variable<std::string> *>(
&ioCpp.DefineVariable<char>(name, shapeV, startV, countV,
constantSizeBool));
;
......
......@@ -22,7 +22,7 @@ contains
integer, intent(out) :: ierr
call adios2_set_parameter_f2c( io, TRIM(ADJUSTL(key))//char(0), &
& TRIM(ADJUSTL(value))//char(0) )
& TRIM(ADJUSTL(value))//char(0), ierr )
end subroutine
......
......@@ -21,7 +21,6 @@
#endif
#define DEFAULT_CONFIG_STR str(DEFAULT_CONFIG)
static int rank_saved;
adios2::ADIOS *ad = nullptr;
adios2::Engine *bpWriter = nullptr;
adios2::Variable<double> *varT = nullptr;
......@@ -29,7 +28,6 @@ adios2::Variable<unsigned int> *varGndx = nullptr;
IO::IO(const Settings &s, MPI_Comm comm)
{
rank_saved = s.rank;
m_outputfilename = s.outputfile + ".bp";
ad = new adios2::ADIOS(std::string(DEFAULT_CONFIG_STR), comm,
adios2::DebugON);
......
......@@ -26,8 +26,8 @@ public:
TEST_F(BPWriteTypes, ADIOS2BPWriteTypes)
{
int rank(0);
#ifdef ADIOS2_HAVE_MPI
int rank(0);
int size(0);
adios2_ADIOS *adiosH = adios2_init(MPI_COMM_WORLD, adios2_debug_mode_on);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
......
......@@ -19,11 +19,6 @@ protected:
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");
// 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