Commit 8fcb7a94 authored by Cianciosa, Mark's avatar Cianciosa, Mark
Browse files

Merge branch 'hot_plasma' into 'main'

Fix ti units to be ev and link the dl library on linux systems.

See merge request !9
parents 4651da74 fcee6fc8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ target_link_libraries (rays
                       sanitizer
                       gpu_lib
                       NetCDF::NetCDF
                       $<$<PLATFORM_ID:Linux>:${CMAKE_DL_LIBS}>
)
target_precompile_headers (rays
                           INTERFACE
+2 −2
Original line number Diff line number Diff line
@@ -1049,8 +1049,8 @@ namespace equilibrium {
                            graph::shared_leaf<T, SAFE_MATH> z) {
            auto pressure = get_pressure(x, y, z);
            auto q = graph::constant<T, SAFE_MATH> (static_cast<T> (1.60218E-19));
            return (pressure - get_electron_density(x, y, z)*get_electron_temperature(x, y, z)/q) /
                   (get_ion_density(index, x, y, z));
            return (pressure - get_electron_density(x, y, z)*get_electron_temperature(x, y, z)*q) /
                   (get_ion_density(index, x, y, z)*q);
        }

//------------------------------------------------------------------------------