Skip to content

Commit

Permalink
name
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Dec 7, 2023
1 parent a83de68 commit 4c1c995
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Diagnostics/RecordingPlaneDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ RecordingPlaneDiagnostics::Flush (int i_buffer, bool /* force_flush */)
{
if (m_slice_counter == 0) return;

std::string filename = amrex::Concatenate(m_file_prefix, i_buffer, 1);
// const std::string filename = amrex::Concatenate(m_file_prefix, i_buffer, 1);
const std::string filename = m_file_prefix;
constexpr int permission_flag_rwxrxrx = 0755;
if (amrex::ParallelDescriptor::IOProcessor()) {
if (! amrex::UtilCreateDirectory(filename, permission_flag_rwxrxrx) ) {
Expand Down Expand Up @@ -394,7 +395,7 @@ RecordingPlaneDiagnostics::Flush (int i_buffer, bool /* force_flush */)

if (nparticles > 0) {
m_flush_format->WriteToFile(m_varnames, {}, m_geom_output[i_buffer],
warpx.getistep(), warpx.gett_new(0), m_output_species[i_buffer], nlev_output, m_file_prefix,
warpx.getistep(), warpx.gett_new(0), m_output_species[i_buffer], nlev_output, filename,
m_file_min_digits, plot_raw_fields, plot_raw_fields_guards, use_pinned_pc,
isBTD, i_buffer, m_flush_counter, maxBTDBuffers, geom,
isLastBTD, m_totalParticles_flushed_already[i_buffer]);
Expand Down

0 comments on commit 4c1c995

Please sign in to comment.