Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle property Solid Comp #1692

Merged
merged 6 commits into from May 19, 2017
Merged

Conversation

joeschools
Copy link

I added a new particle property solid comp which records the peridotite depletion. I believe this is currently the best way in aspect to track the petrological evolution of the the model and in conjunction with pT path, can be used to compare to MELTS or other thermodynamic software/databases.

Joe Schools added 2 commits May 15, 2017 17:32
…e depletion.

This can be used to track a simplistic petrological evolution of material in the model.
@joeschools
Copy link
Author

Property renamed as requested @gassmoeller

@gassmoeller
Copy link
Member

/run-tests

@joeschools
Copy link
Author

Changes made. Now tracks all composition fields.

Copy link
Member

@gassmoeller gassmoeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two stylistic comments. Otherwise good to go. Thanks for suffering my requests for changes 👍

if there is a compositonal field named "porosity".
if there is a compositonal field named "porosity". A second new particle property
is also added which indicates the peridotite depletion value. This can be used
to track the petrological evolution of material.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the entry.

{
std::ostringstream field_name;
field_name << this->introspection().name_for_compositional_index(i);
property_information.push_back(std::make_pair(field_name.str(),1));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simplify these 3 lines into the following:

const std::string field_name = this->introspection().name_for_compositional_index(i);
property_information.push_back(std::make_pair(field_name,1));

@joeschools
Copy link
Author

Requested changes made. Thank you for suffering through my ignorance and thank you for all your help over the last ten days.

@gassmoeller
Copy link
Member

The last formality. You will need to download the changes-gcc.diff file that you find when clicking on 'Details' next to the test results. Put it in your source folder and navigate in a terminal into that folder. Then apply the following patch:

patch -p1 < changes-gcc.diff

Make a new commit and push your branch. Then the tester should pass, and this is ready to go.

@joeschools
Copy link
Author

Patch applied

@gassmoeller
Copy link
Member

Thanks! Ready to go.

@gassmoeller gassmoeller merged commit 227329d into geodynamics:master May 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants