Skip to content

Commit 0bda7ae

Browse files
authored
Merge pull request #46 from E3SM-Project/develop
Merge develop
2 parents 70a4ce2 + 21186b8 commit 0bda7ae

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

methods/slmm/slmmir.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,13 +1453,17 @@ static Snapshot::Ptr make_midpoint_snapshot (
14531453
return snapshot;
14541454
}
14551455

1456-
static Basis::Ptr parse_basis (const std::string& basis) {
1457-
if (basis == "" || basis == "GllNodal")
1456+
static Basis::Ptr parse_basis (const Method::Enum method, const std::string& basis) {
1457+
if (Method::is_ci(method) || ! Method::is_stabilized(method))
1458+
return Basis::create(Basis::Type::gll);
1459+
else if (basis == "" || basis == "GllNodal")
14581460
return Basis::create(Basis::Type::gll_nodal);
14591461
else if (basis == "GllOffsetNodal")
14601462
return Basis::create(Basis::Type::gll_offset_nodal);
14611463
else if (basis == "UniformOffsetNodal")
14621464
return Basis::create(Basis::Type::uniform_offset_nodal);
1465+
else if (basis == "Gll")
1466+
return Basis::create(Basis::Type::gll);
14631467
else {
14641468
const auto b = Basis::create_basis_from_string(basis);
14651469
SIQK_THROW_IF( ! b, "Did not get a basis from: " << b);
@@ -1478,7 +1482,7 @@ static void run (const Input& in) {
14781482
pref->experiment = in.p_refine_experiment;
14791483

14801484
const auto m = std::make_shared<Mesh>();
1481-
m->basis = parse_basis(in.basis);
1485+
m->basis = parse_basis(in.integrate_options.method, in.basis);
14821486
init_mesh(in.np, in.tq_order, in.ne, in.nonunimesh, in.mesh_type, *m);
14831487
pref->m_f = m;
14841488

0 commit comments

Comments
 (0)