Skip to content

Commit 2590f22

Browse files
committed
remove pmax
1 parent f9e6cc2 commit 2590f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/eam/src/physics/crm/pam/pam_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ inline int pam_driver_set_subcycle_timestep( pam::PamCoupler &coupler, real crm_
7373
cfl_max(k,n) = max(cfl_u,cfl_w);
7474
});
7575
// calculate final CFL across ensemble
76-
real cfl_loc = pmax(cfl_max.data());
76+
real cfl_loc = yakl::intrinsics::maxval(cfl_max);
7777
cfl = max(cfl,cfl_loc);
7878
// update number of subcycles and time step
7979
num_subcycle = max(num_subcycle,max(1,static_cast<int>(ceil(cfl/0.7))));

0 commit comments

Comments
 (0)