Skip to content

Commit

Permalink
Fix other input format
Browse files Browse the repository at this point in the history
  • Loading branch information
gassmoeller committed Oct 4, 2024
1 parent a0598b2 commit e2554a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/simulator/initial_conditions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,11 @@ namespace aspect
{
Assert (advection_field_has_been_found[advection_field] == false,
ExcMessage("The same advection field is mapped to particle properties in different particle worlds. This is not supported."));
advection_field_has_been_found[advection_field] = true;

const unsigned int particle_property_index = particle_property_manager.get_data_info().get_position_by_field_name(particle_property_and_component.first)
+ particle_property_and_component.second;

advection_field_has_been_found[advection_field] = true;
particle_property_indices[world_index].push_back({advection_field, particle_property_index});
property_mask[world_index].set(particle_property_index,true);
}
Expand All @@ -335,6 +335,7 @@ namespace aspect
ExcMessage("Can not automatically match particle properties to fields, because there are"
"more fields that are marked as particle advected than particle properties"));

advection_field_has_been_found[advection_field] = true;
particle_property_indices[world_index].push_back({advection_field,particle_property_index});
property_mask[world_index].set(particle_property_index,true);
}
Expand Down

0 comments on commit e2554a6

Please sign in to comment.