[MOAB-dev] commit/MOAB: danwu: Add a test case to test reading FV grid with ghosting. It is provided by Jayesh, which shows a typical ParGAL read behavior for an FV grid variable. It failed on 4 processors before the ghosting issues with ownership were recently fixed.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Nov 20 13:45:42 CST 2013
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/453b71e81394/
Changeset: 453b71e81394
Branch: master
User: danwu
Date: 2013-11-20 20:45:09
Summary: Add a test case to test reading FV grid with ghosting. It is provided by Jayesh, which shows a typical ParGAL read behavior for an FV grid variable. It failed on 4 processors before the ghosting issues with ownership were recently fixed.
Affected #: 1 file
diff --git a/test/io/read_nc.cpp b/test/io/read_nc.cpp
index e57c6b3..406fdf6 100644
--- a/test/io/read_nc.cpp
+++ b/test/io/read_nc.cpp
@@ -29,6 +29,7 @@ void test_read_fv_onevar();
void test_read_fv_onetimestep();
void test_read_fv_nomesh();
void test_read_fv_novars();
+void test_read_fv_ghosting();
ErrorCode get_options(std::string& opts);
@@ -57,6 +58,9 @@ int main(int argc, char* argv[])
result += RUN_TEST(test_read_fv_nomesh);
result += RUN_TEST(test_read_fv_novars);
+ // Before ghosting issues with ownership were fixed, this test failed on 4 processors
+ result += RUN_TEST(test_read_fv_ghosting);
+
#ifdef USE_MPI
fail = MPI_Finalize();
if (fail)
@@ -494,6 +498,33 @@ void test_read_fv_novars()
CHECK_ERR(rval);
}
+void test_read_fv_ghosting()
+{
+ Core moab;
+ Interface& mb = moab;
+
+ // Need a set for nomesh to work right
+ EntityHandle set;
+ ErrorCode rval = mb.create_meshset(MESHSET_SET, set);
+ CHECK_ERR(rval);
+
+ std::string orig, opts;
+ rval = get_options(orig);
+ CHECK_ERR(rval);
+
+ opts = std::string("PARALLEL=READ_PART;PARTITION;PARALLEL_GHOSTS=2.0.1;NOMESH;VARIABLE=;PARTITION_METHOD=SQIJ");
+ rval = mb.load_file(example_fv, &set, opts.c_str());
+ CHECK_ERR(rval);
+
+ opts = std::string("PARALLEL=READ_PART;PARTITION;PARALLEL_RESOLVE_SHARED_ENTS;PARALLEL_GHOSTS=2.0.1;PARTITION_METHOD=SQIJ;VARIABLE=");
+ rval = mb.load_file(example_fv, &set, opts.c_str());
+ CHECK_ERR(rval);
+
+ opts = std::string("PARALLEL=READ_PART;PARTITION;PARTITION_METHOD=SQIJ;VARIABLE=TOT_CLD_VISTAU;NOMESH;TIMESTEP=0;");
+ rval = mb.load_file(example_fv, &set, opts.c_str());
+ CHECK_ERR(rval);
+}
+
ErrorCode get_options(std::string& opts)
{
#ifdef USE_MPI
Repository URL: https://bitbucket.org/fathomteam/moab/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the moab-dev
mailing list