6 std::string
example_eul = TestDir +
"unittest/io/eul3x48x96.t.3.nc";
7 std::string
example_fv = TestDir +
"unittest/io/fv3x46x72.t.3.nc";
8 std::string
example_domain = TestDir +
"unittest/io/domain.ocn.ne4np4_oQU240.160614.nc";
9 std::string
example_scrip = TestDir +
"unittest/io/ocean.QU.240km.scrip.151209.nc";
30 void test_read_fv_ghosting();
42 int main(
int argc,
char* argv[] )
47 int fail = MPI_Init( &argc, &argv );
50 argv[0] = argv[argc - argc];
69 result +=
RUN_TEST( test_read_fv_ghosting );
73 fail = MPI_Finalize();
91 Tag Ttag0, Ttag1, coordTag;
114 opts += std::string(
";VARIABLE=T" );
133 const double eps = 0.0001;
142 EntityHandle gloabl_quad_ents[] = { global_quads[0], global_quads[2255], global_quads[2304],
143 global_quads[4559], global_quads[48], global_quads[2303],
144 global_quads[2352], global_quads[4607] };
156 else if( 2 == procs )
162 EntityHandle local_quad_ents[] = { local_quads[0], local_quads[1151], local_quads[1152], local_quads[2303] };
197 opts += std::string(
";VARIABLE=T;TIMESTEP=1" );
217 std::string orig, opts;
220 opts = orig + std::string(
";VARIABLE=T;TIMESTEP=0" );
231 opts = orig + std::string(
";VARIABLE=T;TIMESTEP=1;NOMESH" );
247 std::string orig, opts;
250 opts = orig + std::string(
";NOMESH;VARIABLE=" );
253 opts = orig + std::string(
";VARIABLE=;TIMESTEP=0" );
261 opts = orig + std::string(
";VARIABLE=T;TIMESTEP=0;NOMESH" );
270 opts = orig + std::string(
";VARIABLE=T;TIMESTEP=1;NOMESH" );
288 Tag Ttag0, Ttag1, coordTag;
303 opts += std::string(
";VARIABLE=T" );
322 const double eps = 0.0001;
331 EntityHandle gloabl_quad_ents[] = { global_quads[0], global_quads[1619], global_quads[1656],
332 global_quads[3275], global_quads[36], global_quads[1655],
333 global_quads[1692], global_quads[3311] };
345 else if( 2 == procs )
351 EntityHandle local_quad_ents[] = { local_quads[0], local_quads[827], local_quads[828], local_quads[1655] };
386 opts += std::string(
";VARIABLE=T;TIMESTEP=1" );
414 std::string orig, opts;
417 opts = orig + std::string(
";VARIABLE=T;TIMESTEP=0" );
428 opts = orig + std::string(
";VARIABLE=T;TIMESTEP=1;NOMESH" );
444 std::string orig, opts;
447 opts = orig + std::string(
";NOMESH;VARIABLE=" );
450 opts = orig + std::string(
";VARIABLE=;TIMESTEP=0" );
458 opts = orig + std::string(
";VARIABLE=T;TIMESTEP=0;NOMESH" );
467 opts = orig + std::string(
";VARIABLE=T;TIMESTEP=1;NOMESH" );
475 void test_read_fv_ghosting()
484 std::string orig, opts;
487 opts = std::string(
"PARALLEL=READ_PART;PARTITION;PARALLEL_GHOSTS=2.0.1;NOMESH;VARIABLE=;"
488 "PARTITION_METHOD=SQIJ" );
491 opts = std::string(
"PARALLEL=READ_PART;PARTITION;PARALLEL_RESOLVE_SHARED_ENTS;PARALLEL_GHOSTS="
492 "2.0.1;PARTITION_METHOD=SQIJ;VARIABLE=" );
495 opts = std::string(
"PARALLEL=READ_PART;PARTITION;PARTITION_METHOD=SQIJ;VARIABLE=TOT_CLD_"
496 "VISTAU;NOMESH;TIMESTEP=0;" );
510 std::string orig, opts;
513 opts = orig + std::string(
";VARIABLE=" );
526 std::string orig, opts;
529 opts = orig + std::string(
";VARIABLE=" );
537 opts = std::string(
";;PARALLEL=READ_PART;PARTITION_METHOD=SQIJ;DEBUG_IO=2;" );
540 opts = std::string(
";;" );