Skip to content

Commit

Permalink
removing some unused line
Browse files Browse the repository at this point in the history
  • Loading branch information
pengfej committed May 27, 2022
1 parent ea6b734 commit 61a6e71
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions source/base/data_out_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7767,7 +7767,9 @@ DataOutInterface<dim, spacedim>::write_vtu_in_parallel(

if (myrank == n_ranks - 1)
{
// Locating Footer with offset on last rank.
footer_offset = size_on_proc + offset;

std::stringstream ss;
DataOutBase::write_vtu_footer(ss);
const unsigned int footer_size = ss.str().size();
Expand All @@ -7784,22 +7786,7 @@ DataOutInterface<dim, spacedim>::write_vtu_in_parallel(
}
}

// write footer
// if (myrank == 0)
// {
// std::stringstream ss;
// DataOutBase::write_vtu_footer(ss);
// const unsigned int footer_size = ss.str().size();

// // Writing Footer.
// ierr = Utilities::MPI::LargeCount::MPI_File_write_at_c(fh,
// footer_offset,
// ss.str().c_str(),
// footer_size,
// MPI_CHAR,
// MPI_STATUS_IGNORE);
// AssertThrowMPI(ierr);
// }

ierr = MPI_File_close(&fh);
AssertThrowMPI(ierr);
#endif
Expand Down

0 comments on commit 61a6e71

Please sign in to comment.