Skip to content

[WIP] Add option to read maxwellian momentum from openpmd file#6716

Open
oshapoval wants to merge 18 commits intoBLAST-WarpX:developmentfrom
oshapoval:read_from_file_momentum
Open

[WIP] Add option to read maxwellian momentum from openpmd file#6716
oshapoval wants to merge 18 commits intoBLAST-WarpX:developmentfrom
oshapoval:read_from_file_momentum

Conversation

@oshapoval
Copy link
Copy Markdown
Contributor

This is a follow-up PR to #6695. It adds an option to read Maxwellian momentum from an openPMD file.

To do:

  • add support for reading read u_mean from a file
  • add support for reading read u_std from a file

Comment on lines +78 to +79
m_ux_mean_reader = new ExternalFieldReader(
vel.m_read_ux_mean_path, vel.m_ux_mean_openpmd_mesh, "", problo, pdx, dombox, distributed);

Check warning

Code scanning / CodeQL

Resource not released in destructor Warning

Resource m_ux_mean_reader is acquired by class GetVelocityVector but not released in the destructor. It is released from clear on line 148, so this function may need to be called from the destructor.
Comment on lines +80 to +81
m_uy_mean_reader = new ExternalFieldReader(
vel.m_read_uy_mean_path, vel.m_uy_mean_openpmd_mesh, "", problo, pdx, dombox, distributed);

Check warning

Code scanning / CodeQL

Resource not released in destructor Warning

Resource m_uy_mean_reader is acquired by class GetVelocityVector but not released in the destructor. It is released from clear on line 150, so this function may need to be called from the destructor.
Comment on lines +82 to +83
m_uz_mean_reader = new ExternalFieldReader(
vel.m_read_uz_mean_path, vel.m_uz_mean_openpmd_mesh, "", problo, pdx, dombox, distributed);

Check warning

Code scanning / CodeQL

Resource not released in destructor Warning

Resource m_uz_mean_reader is acquired by class GetVelocityVector but not released in the destructor. It is released from clear on line 152, so this function may need to be called from the destructor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants