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

Create minimum energy modifier #375

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
355cf71
Create default MinInternalEnergyFromDensity behavior
jhp-lanl May 11, 2024
2eda134
Add minimum energy modifier
jhp-lanl May 11, 2024
1c29d51
Add minimum energy modifier
jhp-lanl May 11, 2024
c6ed8dc
Rely on default minimum energy functionality in base class (if this w…
jhp-lanl May 11, 2024
4da0d99
Clang format
jhp-lanl May 11, 2024
21510e6
Merge branch 'main' of github.com:lanl/singularity-eos into jhp/MinEn…
jhp-lanl May 14, 2024
6a133af
Merge branch 'main' of github.com:lanl/singularity-eos into jhp/MinEn…
jhp-lanl Feb 20, 2025
eb85218
Reflect renamed file
jhp-lanl Feb 20, 2025
0a826a1
Add test for floored energy modifer
jhp-lanl Feb 27, 2025
27cd773
Clang format
jhp-lanl Feb 27, 2025
ad6d3cc
Use using macro
jhp-lanl Feb 27, 2025
692d1e1
Merge branch 'main' of github.com:lanl/singularity-eos into jhp/MinEn…
jhp-lanl Feb 27, 2025
06afb52
Rename file without typo
jhp-lanl Feb 27, 2025
aacebac
copy_eos_arr_to_device needs template argument since EOS type can change
jhp-lanl Feb 27, 2025
f5ff947
Whoops... forgot the constructor
jhp-lanl Feb 28, 2025
0411b1c
Whoops... forgot 'typename'
jhp-lanl Feb 28, 2025
f0edfca
Whoops... needs second template argument
jhp-lanl Feb 28, 2025
587466e
Fix a lot of silly mistakes
jhp-lanl Feb 28, 2025
c053d29
Clang format
jhp-lanl Feb 28, 2025
0e58fda
Remove spiner temporarily
jhp-lanl Feb 28, 2025
69d28fa
Enable MinInternalEnergyFromDensity for spiner rho T
jhp-lanl Feb 28, 2025
5841d42
Remove extraneous const
jhp-lanl Feb 28, 2025
cf5ebd3
Move variables inside ifdef to avoid unused warning
jhp-lanl Feb 28, 2025
7ea79ef
Change test stage slightly
jhp-lanl Feb 28, 2025
f131b32
Add FlooredEnergy modifer
jhp-lanl Feb 28, 2025
a3dcdea
Add FlooredEnergy documentation
jhp-lanl Feb 28, 2025
b01e9bd
Update copyright
jhp-lanl Feb 28, 2025
c01e51e
One last doc change
jhp-lanl Feb 28, 2025
ebd11bd
Small change to documentation
jhp-lanl Feb 28, 2025
e2b269c
Merge branch 'main' of github.com:lanl/singularity-eos into jhp/MinEn…
jhp-lanl Mar 3, 2025
01c59d8
Add newer methods to floored_energy modifier
jhp-lanl Mar 3, 2025
c667d49
__host__ __device__ apparently can't handle an return type
jhp-lanl Mar 3, 2025
c6fa446
Actually... the problem was a mis-placed PORTABLE function decorator
jhp-lanl Mar 3, 2025
e97890a
diff_pressures can't have an auto return type
jhp-lanl Mar 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/test_modifier_floored_energy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ using EOS =
// temperature for the lookup is T_lookup. The energy for the lookup is given by
// e(rho, T_lookup) - e_offset
PORTABLE_INLINE_FUNCTION
auto diff_pressures(const int n_eos, EOS *v_EOS, const Real T_lookup,
const Real e_offset = 0., const Real rho_factor = 1.2) {
std::vector<Real> diff_pressures(const int n_eos, EOS *v_EOS, const Real T_lookup,
const Real e_offset = 0., const Real rho_factor = 1.2) {
// Create storage for relative diffs
std::vector<Real> P_rdiffs(n_eos); // zero initialized
const size_t bytes = n_eos * sizeof(Real);
Expand Down