Skip to content

Commit

Permalink
fix statistics flag parameter to call adios_declare_group()
Browse files Browse the repository at this point in the history
  • Loading branch information
pnorbert committed Jun 22, 2017
1 parent 6f54f69 commit 3a804bb
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/staging/stage_write/stage_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int process_metadata(int step)
adios_get_grouplist(f, &group_namelist);
group_name = strdup (group_namelist[0]);
print0("Group name is %s\n", group_name);
adios_declare_group(&gh,group_name,"",adios_flag_yes);
adios_declare_group(&gh,group_name,"",adios_stat_default);


varinfo = (VarInfo *) malloc (sizeof(VarInfo) * f->nvars);
Expand Down
2 changes: 1 addition & 1 deletion examples/staging/stage_write_varyingsize/stage_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ int process_metadata(int step)
adios_get_grouplist(f, &group_namelist);
group_name = strdup (group_namelist[0]);
print0("Group name is %s\n", group_name);
adios_declare_group(&gh,group_name,"",adios_flag_yes);
adios_declare_group(&gh,group_name,"",adios_stat_default);
}

varinfo = (VarInfo *) malloc (sizeof(VarInfo) * f->nvars);
Expand Down
2 changes: 1 addition & 1 deletion tutorial/201308_Chester/noxml_C/adios_global_no_xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main (int argc, char ** argv)
adios_init_noxml (comm);
adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 10);

adios_declare_group (&m_adios_group, "restart", "iter", adios_flag_yes);
adios_declare_group (&m_adios_group, "restart", "iter", adios_stat_default);
adios_select_method (m_adios_group, "MPI", "", "");


Expand Down
2 changes: 1 addition & 1 deletion tutorial/201308_Chester/staging/stage_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int process_metadata(int step)
// get groupname of stream, then declare for output
adios_get_grouplist(f, &group_namelist);
print0("Group name is %s\n", group_namelist[0]);
adios_declare_group(&gh,group_namelist[0],"",adios_flag_yes);
adios_declare_group(&gh,group_namelist[0],"",adios_stat_default);


varinfo = (VarInfo *) malloc (sizeof(VarInfo) * f->nvars);
Expand Down
2 changes: 1 addition & 1 deletion tutorial/201402_OLCF/noxml/adios_global_no_xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main (int argc, char ** argv)
adios_init_noxml (comm);
adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 10);

adios_declare_group (&m_adios_group, "restart", "iter", adios_flag_yes);
adios_declare_group (&m_adios_group, "restart", "iter", adios_stat_default);
adios_select_method (m_adios_group, "MPI", "", "");


Expand Down
2 changes: 1 addition & 1 deletion tutorial/201402_OLCF/staging/stage_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ int process_metadata(int step)
// get groupname of stream, then declare for output
adios_get_grouplist(f, &group_namelist);
print0("Group name is %s\n", group_namelist[0]);
adios_declare_group(&gh,group_namelist[0],"",adios_flag_yes);
adios_declare_group(&gh,group_namelist[0],"",adios_stat_default);


varinfo = (VarInfo *) malloc (sizeof(VarInfo) * f->nvars);
Expand Down
2 changes: 1 addition & 1 deletion utils/bp2bp/bp2bp.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int main (int argc, char ** argv) {
/* First create all of the groups */
// now I need to create this group in the file that will be written

adios_declare_group(&new_adios_group,f->group_namelist[gidx],"",adios_flag_yes);
adios_declare_group(&new_adios_group,f->group_namelist[gidx],"",adios_stat_default);


if(strcmp(argv[5],"MPI_LUSTRE")!=0) //see whether or not the user uses MPI_LUSTRE method
Expand Down
2 changes: 1 addition & 1 deletion utils/bp2bp/bp2bp_klasky.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int main (int argc, char ** argv)
}
/* First create all of the groups */
// now I need to create this group in the file that will be written
adios_declare_group(&m_adios_group,f->group_namelist[gidx],"",adios_flag_yes);
adios_declare_group(&m_adios_group,f->group_namelist[gidx],"",adios_stat_default);
adios_select_method (m_adios_group, argv[4], "", "");

// for each variable, I need to know how much to read in... I have a buffer, so I can
Expand Down
6 changes: 3 additions & 3 deletions utils/fastbit/adios_index_fastbit.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void onSelection(int rank, ADIOS_FILE* f, ADIOS_VARINFO* v, int timestep, char*
sum_nb += nb; sum_nk += nk, sum_no += no;
adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 500); // +5MB for extra room in buffer
adios_declare_group (&gAdios_group, gGroupNameFastbitIdx, "", adios_flag_yes);
adios_declare_group (&gAdios_group, gGroupNameFastbitIdx, "", adios_stat_default);
adios_select_method (gAdios_group, "MPI", "", "");
adios_open (&gAdios_write_file, gGroupNameFastbitIdx, gIdxFileName, "w", MPI_COMM_WORLD);
Expand Down Expand Up @@ -790,14 +790,14 @@ int main (int argc, char** argv)

/*
adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, (f->file_size)*2/1048576 + 5); // +5MB for extra room in buffer
adios_declare_group (&gAdios_group, gGroupNameFastbitIdx, "", adios_flag_yes);
adios_declare_group (&gAdios_group, gGroupNameFastbitIdx, "", adios_stat_default);
adios_select_method (gAdios_group, "MPI", "", "");
*/
gIdxFileName = fastbit_adios_util_getFastbitIndexFileName(argv[1]);
unlink(gIdxFileName);

//adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, 500); // +5MB for extra room in buffer
adios_declare_group (&gAdios_group, gGroupNameFastbitIdx, "", adios_flag_yes);
adios_declare_group (&gAdios_group, gGroupNameFastbitIdx, "", adios_stat_default);
adios_select_method (gAdios_group, "MPI", "", "");

adios_open (&gAdios_write_file, gGroupNameFastbitIdx, gIdxFileName, "w", MPI_COMM_WORLD);
Expand Down
2 changes: 1 addition & 1 deletion utils/skel/etc/templates/source_write_c.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int64_t skel_adios_group;
int color = skel_mpi_rank / 2;

adios_allocate_buffer (ADIOS_BUFFER_ALLOC_NOW, $bpy.get_buf_size_mb());
adios_declare_group (&skel_adios_group, "${bpy.get_group_name()}", "", adios_flag_no);
adios_declare_group (&skel_adios_group, "${bpy.get_group_name()}", "", adios_stat_no);

char paramstring[<%= len(self.bpy.get_parameters()) + 64 %>];
//sprintf (paramstring, "color:%i;%s", color, "$bpy.get_parameters()");
Expand Down

0 comments on commit 3a804bb

Please sign in to comment.