Skip to content

Commit 4cca117

Browse files
committed
dot_along_rank1_dim
1 parent e140df9 commit 4cca117

File tree

3 files changed

+531
-0
lines changed

3 files changed

+531
-0
lines changed

components/eamxx/src/share/field/field_utils.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define SCREAM_FIELD_UTILS_HPP
33

44
#include "share/field/field_utils_impl.hpp"
5+
#include "share/field/field_utils_impl_dot.hpp"
56

67
namespace scream {
78

@@ -111,6 +112,12 @@ void perturb (const Field& f,
111112
impl::perturb<ST>(f, engine, pdf, base_seed, level_mask, dof_gids);
112113
}
113114

115+
template <typename ST>
116+
Field dot_along_rank1_dim(const int &pd, const Field &f1, const Field &f2,
117+
const ekat::Comm *co = nullptr) {
118+
return do_dot_along_rank1_dim<ST>(pd, f1, f2, co);
119+
}
120+
114121
template<typename ST>
115122
ST frobenius_norm(const Field& f, const ekat::Comm* comm = nullptr)
116123
{

0 commit comments

Comments
 (0)