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

Simplifying the EOS and Transport structures #184

Merged
merged 1 commit into from
Aug 11, 2021
Merged

Conversation

marchdf
Copy link
Contributor

@marchdf marchdf commented Aug 3, 2021

Curious about what people think of this idea...

  • consolidates logic on EOS switches
  • compiles in all the EOS (even though we can only pick which one to use at compile time)
  • consolidates common EOS functions into one header and cpp file.
  • removed all fortran EOS (does anyone still use those?)

The downside is that it requires a bit of rejigging of the make system (eg Eos_dir -> Eos_Model in the GNUMakefile)

If people like this, I might do it for transport too.

@hariswaran @jrood-nrel @esclapez @drummerdoc, thoughts?

@drummerdoc
Copy link
Contributor

Indifferent. If you can get it to pass all the tests, and if you like it better this way for some reason, I'm good with it

@esclapez
Copy link
Contributor

esclapez commented Aug 3, 2021

Same here. I don't think anyone is still using Fortran. I'll probably wait until you've updated the transport to make the changes to LM make system.

Copy link
Contributor

@jrood-nrel jrood-nrel left a comment

Choose a reason for hiding this comment

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

This is good. This allows us to compile all the EOSes in at the same time and even though switching the EOS at runtime doesn't make much sense, it will allow us to catch more problems, and is one step closer to allowing us to use libraries inside Pele.

@marchdf marchdf force-pushed the simplify-eos branch 4 times, most recently from 1ed600f to 226d91e Compare August 4, 2021 22:12
@marchdf marchdf changed the title Simplifying the EOS structure a bit Simplifying the EOS and Transport structures Aug 4, 2021
@marchdf
Copy link
Contributor Author

marchdf commented Aug 4, 2021

Hey everyone, I think this is good to go once the tests pass. LMK what you think.

@marchdf marchdf marked this pull request as ready for review August 4, 2021 22:44
@marchdf marchdf marked this pull request as draft August 4, 2021 22:51
@marchdf marchdf requested review from esclapez and baperry2 August 4, 2021 22:51
Copy link
Contributor

@esclapez esclapez left a comment

Choose a reason for hiding this comment

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

I'm good with these changes. One step closer to having runtime selection !

@marchdf marchdf force-pushed the simplify-eos branch 2 times, most recently from ab4d1a9 to 0565743 Compare August 5, 2021 14:25
Copy link
Contributor

@baperry2 baperry2 left a comment

Choose a reason for hiding this comment

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

Looks good. Much easier to follow code organization now. You should also be able to remove the Fortran test cases now.

@@ -19,15 +19,15 @@ PELE_PHYSICS_HOME := ../../..
USE_F90_PP = TRUE

ifeq ($(FUEGO_GAS), TRUE)
Eos_dir = Fuego
Copy link
Contributor

Choose a reason for hiding this comment

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

If the Fortran EOS support is being removed, shouldn't the Eval_FORTRAN test cases also be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch @baperry2 . It is done.

@marchdf marchdf marked this pull request as ready for review August 6, 2021 18:32
@marchdf marchdf requested a review from baperry2 August 6, 2021 18:32
@marchdf marchdf force-pushed the simplify-eos branch 2 times, most recently from 3da085a to b8c4d30 Compare August 11, 2021 16:47
@marchdf marchdf merged commit 567d6ee into development Aug 11, 2021
@marchdf marchdf deleted the simplify-eos branch August 11, 2021 20:38
drummerdoc pushed a commit that referenced this pull request Aug 28, 2023
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.

5 participants