Skip to content

Commit dae9650

Browse files
author
Roberto Di Remigio
committed
Correct inconsistency in mpl::vector and index assigned to Tanh profile policy
1 parent 694055f commit dae9650

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/Input.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,7 @@ int integratorPolicy(const std::string & name)
322322
int profilePolicy(const std::string & name)
323323
{
324324
static std::map<std::string, int> mapStringToInt;
325-
mapStringToInt.insert(std::map<std::string, int>::value_type("UNIFORM", 0));
326-
mapStringToInt.insert(std::map<std::string, int>::value_type("YUKAWA", 1));
327-
mapStringToInt.insert(std::map<std::string, int>::value_type("ANISOTROPIC", 2));
328-
mapStringToInt.insert(std::map<std::string, int>::value_type("ONELAYERTANH", 3));
325+
mapStringToInt.insert(std::map<std::string, int>::value_type("ONELAYERTANH", 0));
329326

330327
return mapStringToInt.find(name)->second;
331328
}

0 commit comments

Comments
 (0)