Skip to content

Commit

Permalink
udpate unit tests for smartsim FO
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamScience committed Nov 2, 2023
1 parent 9443dc3 commit a20e915
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ TEST_CASE("Shared SmartRedis client", "[cavity][serial][parallel]")
dict0.set("type", "smartSimFunctionObject");
dict0.set("fieldNames", wordList());
dict0.set("fieldDimensions", labelList());
dict0.set("clusterModel", false);
dict0.set("clientName", "default");
dictionary dict1;
dict1.set("region", polyMesh::defaultRegion);
dict1.set("type", "smartSimFunctionObject");
dict1.set("fieldNames", wordList());
dict1.set("fieldDimensions", labelList());
dict1.set("clusterModel", false);
dict1.set("clientName", "default");
functionObjects::smartSimFunctionObject o0("smartSim0", runTime, dict0);
functionObjects::smartSimFunctionObject o1("smartSim1", runTime, dict1);
REQUIRE(&(o0.redisDB()) == &(o1.redisDB()));
REQUIRE(&(o0.redisDB().client()) == &(o1.redisDB().client()));
}

0 comments on commit a20e915

Please sign in to comment.