Skip to content

Commit

Permalink
update pam to conform to new eamxx p3
Browse files Browse the repository at this point in the history
  • Loading branch information
mahf708 committed Nov 22, 2024
1 parent 0d3b7da commit febfb90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/eam/src/physics/crm/pam/pam_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

// Needed for p3_init
#include "p3_functions.hpp"
#include "p3_f90.hpp"

#include "pam_debug.h"
bool constexpr enable_check_state = false;
Expand Down Expand Up @@ -203,7 +202,8 @@ extern "C" void pam_driver() {
#if defined(P3_CXX)
if (is_first_step || is_restart) {
auto am_i_root = coupler.get_option<bool>("am_i_root");
scream::p3::p3_init(/*write_tables=*/false, am_i_root);
using P3F = scream::p3::Functions<scream::Real, scream::DefaultDevice>;
P3F::p3_init(/*write_tables=*/false, am_i_root);
pam::p3_init_lookup_tables(); // Load P3 lookup table data - avoid re-loading every CRM call
}
#endif
Expand Down

0 comments on commit febfb90

Please sign in to comment.