Skip to content

Commit

Permalink
update laser metadata dumper to new data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
PrometheusPi committed Sep 25, 2024
1 parent 7af3fbf commit b90328c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ namespace picongpu::fields::incidentField::profiles
nlohmann::json laguerreModesJson = nlohmann::json::array();
nlohmann::json laguerrePhasesJson = nlohmann::json::array();

for(uint32_t i = 0; i <= MODENUMBER; ++i)
for(uint32_t i = 0; i <= numModes; ++i)
{
laguerreModesJson.push_back(LAGUERREMODES_t{}[i]);
laguerrePhasesJson.push_back(LAGUERREPHASES_t{}[i]);
laguerreModesJson.push_back(laguerreModes[i]);
laguerrePhasesJson.push_back(laguerrePhases[i]);
}

gaussianMetadata["Laguerre modes"] = {{"value", laguerreModesJson}, {"unit", "none"}};
Expand Down

0 comments on commit b90328c

Please sign in to comment.