Skip to content

[WIP] Make sure that the compositional fields are mapped to the correct particle properties#6871

Open
YiminJin wants to merge 3 commits intogeodynamics:mainfrom
YiminJin:particle-property
Open

[WIP] Make sure that the compositional fields are mapped to the correct particle properties#6871
YiminJin wants to merge 3 commits intogeodynamics:mainfrom
YiminJin:particle-property

Conversation

@YiminJin
Copy link
Contributor

@YiminJin YiminJin commented Feb 23, 2026

This PR tries to address the problems shown in #6863 . It forces mapped_particle_properties to be created, and let the particle property plugins check if the compositional fields are mapped to the correct particle properties. Further, it makes Particle::Property::InitialComposition only declare particle properties prefixed by initial , so the duplication is removed.

However, there are two problematic particle property plugins composition and composition reaction, which set the property names identical to the corresponding compositional field names, so I cannot sort out the fields that ought to be mapped to these properties. A potential solution is to declare parameters for these plugins to specify the compositional fields to be mapped. Another solution is to treat the two plugins as special ones and let the property manager decide the properties to be mapped to them. Which solution is better? And are there better solutions?

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.

1 participant