Commit 200fed9d authored by Norbert Podhorszki's avatar Norbert Podhorszki
Browse files

Fix basic errors in USER-ADIOS code

parent 24234d3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ void DumpAtomADIOS::init_style()
        pack_choice = &DumpAtomADIOS::pack_noscale_image;

    /* Define the group of variables for the atom style here since it's a fixed set */
    adios2::IO io = ad->DeclareIO(ioName);
    io = ad->DeclareIO(ioName);
    if (!io.InConfigFile())
    {
        // if not defined by user, we can change the default settings
+2 −2
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ DumpCustomADIOS::DumpCustomADIOS(LAMMPS *lmp, int narg, char **arg) :
    //if (screen) fprintf(screen, "DumpCustomADIOS constructor: nvariable=%d id_variable=%p, variables=%p, nfield=%d, earg=%p\n", nvariable, id_variable, variable, nfield, earg);
    columnNames.reserve(nfield);
    for (int i = 0; i < nfield; ++i) {
        columnNames[i]=std::string(earg[i]);
        columnNames.push_back(earg[i]);
        //if (screen) fprintf(screen, "earg[%d] = '%s'\n", i, earg[i]);
    }
}
@@ -294,7 +294,7 @@ void DumpCustomADIOS::init_style()
    }

    /* Define the group of variables for the atom style here since it's a fixed set */
    adios2::IO io = ad->DeclareIO(ioName);
    io = ad->DeclareIO(ioName);
    if (!io.InConfigFile())
    {
        // if not defined by user, we can change the default settings