Skip to content

Commit

Permalink
add icomp
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSinn committed Sep 26, 2024
1 parent ba8d067 commit 1aa407e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics/OpenPMDWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ OpenPMDWriter::WriteFieldData (
std::vector< std::complex<double> > polarization {{1., 0.}, {0., 0.}};
field.setAttribute("polarization", polarization);
field_comp.storeChunkRaw(
reinterpret_cast<const std::complex<amrex::Real>*>(fd.m_F_laser.dataPtr()),
reinterpret_cast<const std::complex<amrex::Real>*>(fd.m_F_laser.dataPtr(icomp)),
chunk_offset, chunk_size);
} else {
field_comp.storeChunkRaw(fd.m_F.dataPtr(icomp), chunk_offset, chunk_size);
Expand Down

0 comments on commit 1aa407e

Please sign in to comment.