Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update glob constructor in tests #333

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/fclaw_diagnostics.h.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

TEST_CASE("fclaw_diagnostics_vtable_initialize stores two seperate vtables in two seperate globs")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_diagnostics_vtable_initialize(glob1);
fclaw_diagnostics_vtable_initialize(glob2);
Expand All @@ -43,7 +43,7 @@ TEST_CASE("fclaw_diagnostics_vtable_initialize stores two seperate vtables in tw

TEST_CASE("fclaw_diagnostics_vtable_initialize sets is_set flag")
{
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_diagnostics_vtable_initialize(glob);

Expand All @@ -56,8 +56,8 @@ TEST_CASE("fclaw_diagnostics_vtable_initialize sets is_set flag")

TEST_CASE("fclaw_diagnostics_vtable_initialize fails if called twice on a glob")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_diagnostics_vtable_initialize(glob1);
CHECK_SC_ABORTED(fclaw_diagnostics_vtable_initialize(glob1));
Expand Down
10 changes: 5 additions & 5 deletions src/fclaw_elliptic_solver.h.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

TEST_CASE("fclaw_elliptic_vtable_initialize stores two seperate vtables in two seperate globs")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_elliptic_vtable_initialize(glob1);
fclaw_elliptic_vtable_initialize(glob2);
Expand All @@ -43,7 +43,7 @@ TEST_CASE("fclaw_elliptic_vtable_initialize stores two seperate vtables in two s

TEST_CASE("fclaw_elliptic_vtable_initialize sets is_set flag")
{
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_elliptic_vtable_initialize(glob);

Expand All @@ -56,8 +56,8 @@ TEST_CASE("fclaw_elliptic_vtable_initialize sets is_set flag")

TEST_CASE("fclaw_elliptic_vtable_initialize fails if called twice on a glob")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_elliptic_vtable_initialize(glob1);
CHECK_SC_ABORTED(fclaw_elliptic_vtable_initialize(glob1));
Expand Down
10 changes: 5 additions & 5 deletions src/fclaw_gauges.h.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

TEST_CASE("fclaw_gauges_vtable_initialize stores two seperate vtables in two seperate globs")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_diagnostics_vtable_initialize(glob1);
fclaw_gauges_vtable_initialize(glob1);
Expand All @@ -47,7 +47,7 @@ TEST_CASE("fclaw_gauges_vtable_initialize stores two seperate vtables in two sep

TEST_CASE("fclaw_gauges_vtable_initialize sets is_set flag")
{
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_diagnostics_vtable_initialize(glob);
fclaw_gauges_vtable_initialize(glob);
Expand All @@ -61,8 +61,8 @@ TEST_CASE("fclaw_gauges_vtable_initialize sets is_set flag")

TEST_CASE("fclaw_guages_vtable_initialize fails if called twice on a glob")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_diagnostics_vtable_initialize(glob1);
fclaw_gauges_vtable_initialize(glob1);
Expand Down
16 changes: 8 additions & 8 deletions src/fclaw_global.h.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TEST_CASE("fclaw2d_global_pack with no options")
for(double curr_dt : {1.0, 1.2})
{
fclaw_global_t* glob1;
glob1 = fclaw_global_new();
glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);
glob1->curr_time = curr_time;
glob1->curr_dt = curr_dt;

Expand Down Expand Up @@ -141,7 +141,7 @@ TEST_CASE("fclaw_global_pack with no options structure")
for(double curr_dt : {1.0, 1.2})
{
fclaw_global_t* glob1;
glob1 = fclaw_global_new();
glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
glob1->curr_time = curr_time;
glob1->curr_dt = curr_dt;

Expand Down Expand Up @@ -180,7 +180,7 @@ TEST_CASE("fclaw_global_pack with a single options structure")
int argc = 1;
//fclaw_app_t* app = fclaw_app_new_on_comm(sc_MPI_COMM_WORLD,&argc,&argv,NULL);
fclaw_global_t* glob1;
glob1 = fclaw_global_new();
glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);
glob1->curr_time = curr_time;
glob1->curr_dt = curr_dt;

Expand Down Expand Up @@ -226,7 +226,7 @@ TEST_CASE("fclaw_global_pack with two options structure")
for(double curr_dt : {1.0, 1.2})
{
fclaw_global_t* glob1;
glob1 = fclaw_global_new();
glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);
glob1->curr_time = curr_time;
glob1->curr_dt = curr_dt;

Expand Down Expand Up @@ -274,7 +274,7 @@ TEST_CASE("fclaw_global_pack with two options structure")
TEST_CASE("fclaw_global_pack aborts with unregistered vtable")
{
fclaw_global_t* glob1;
glob1 = fclaw_global_new();
glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
glob1->curr_time = 100;
glob1->curr_dt = 200;

Expand All @@ -287,7 +287,7 @@ TEST_CASE("fclaw_global_pack aborts with unregistered vtable")
TEST_CASE("fclaw2d_global_packsize aborts with unregistered vtable")
{
fclaw_global_t* glob1;
glob1 = fclaw_global_new();
glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
glob1->curr_time = 100;
glob1->curr_dt = 200;

Expand All @@ -299,7 +299,7 @@ TEST_CASE("fclaw2d_global_packsize aborts with unregistered vtable")
TEST_CASE("fclaw_global_unppack aborts with unregistered vtable")
{
fclaw_global_t* glob1;
glob1 = fclaw_global_new();
glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
glob1->curr_time = 1;
glob1->curr_dt = 1;

Expand All @@ -321,7 +321,7 @@ TEST_CASE("fclaw_global_unppack aborts with unregistered vtable")
CHECK_SC_ABORTED(fclaw2d_global_unpack(buffer, &glob2));
}
TEST_CASE("fclaw_global_options_store and fclaw_global_get_options test") {
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

// Test with an integer
int option1 = 10;
Expand Down
12 changes: 6 additions & 6 deletions src/fclaw_options.h.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

TEST_CASE("fclaw_options can store options in two seperate globs")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_options_t* opts1 = FCLAW_ALLOC_ZERO(fclaw_options_t,1);
fclaw_options_t* opts2 = FCLAW_ALLOC_ZERO(fclaw_options_t,1);
Expand All @@ -54,8 +54,8 @@ TEST_CASE("fclaw_options can store options in two seperate globs")

TEST_CASE("fclaw_get_options fails if not intialized")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

CHECK_SC_ABORTED(fclaw_get_options(glob1));

Expand All @@ -67,8 +67,8 @@ TEST_CASE("fclaw_get_options fails if not intialized")

TEST_CASE("fclaw_options_store fails if called twice on a glob")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_options_store(glob1, FCLAW_ALLOC_ZERO(fclaw_options_t,1));
CHECK_SC_ABORTED(fclaw_options_store(glob1, FCLAW_ALLOC_ZERO(fclaw_options_t,1)));
Expand Down
10 changes: 5 additions & 5 deletions src/fclaw_patch.h.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

TEST_CASE("fclaw_patch_vtable_initialize stores two seperate vtables in two seperate globs")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_patch_vtable_initialize(glob1);
fclaw_patch_vtable_initialize(glob2);
Expand All @@ -43,7 +43,7 @@ TEST_CASE("fclaw_patch_vtable_initialize stores two seperate vtables in two sepe

TEST_CASE("fclaw_patch_vtable_initialize sets is_set flag")
{
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_patch_vtable_initialize(glob);

Expand All @@ -56,8 +56,8 @@ TEST_CASE("fclaw_patch_vtable_initialize sets is_set flag")

TEST_CASE("fclaw_patch_vtable_initialize fails if called twice on a glob")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_patch_vtable_initialize(glob1);
CHECK_SC_ABORTED(fclaw_patch_vtable_initialize(glob1));
Expand Down
10 changes: 5 additions & 5 deletions src/fclaw_vtable.h.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

TEST_CASE("fclaw_vtable_initialize stores two seperate vtables in two seperate globs")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_vtable_initialize(glob1);
fclaw_vtable_initialize(glob2);
Expand All @@ -43,7 +43,7 @@ TEST_CASE("fclaw_vtable_initialize stores two seperate vtables in two seperate g

TEST_CASE("fclaw_vtable_initialize sets is_set flag")
{
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_vtable_initialize(glob);

Expand All @@ -56,8 +56,8 @@ TEST_CASE("fclaw_vtable_initialize sets is_set flag")

TEST_CASE("fclaw_vtable_initialize fails if called twice on a glob")
{
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_vtable_initialize(glob1);
CHECK_SC_ABORTED(fclaw_vtable_initialize(glob1));
Expand Down
4 changes: 2 additions & 2 deletions src/patches/clawpatch/fclaw2d_clawpatch_fort.h.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ TEST_CASE("FCLAW2D_CLAWPATCH_EXCEEDS_THRESHOLD calls user function")
exceeds_test_parameters& params = global_exceeds_test_parameters;

fclaw_domain_t* domain = fclaw_domain_new_unitsquare(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob, domain);

fclaw_clawpatch_options_t* clawpatch_opts = fclaw_clawpatch_options_new(2);
Expand Down Expand Up @@ -136,7 +136,7 @@ TEST_CASE("FCLAW3DX_CLAWPATCH_EXCEEDS_THRESHOLD calls user function")
exceeds_test_parameters& params = global_exceeds_test_parameters;

fclaw_domain_t* domain = fclaw_domain_new_unitsquare(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob, domain);

fclaw_clawpatch_options_t* opts = fclaw_clawpatch_options_new(3);
Expand Down
20 changes: 10 additions & 10 deletions src/patches/clawpatch/fclaw_clawpatch.h.2d.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
TEST_CASE("2d fclaw_clawpatch_vtable_initialize stores two separate vtables in two separate globs")
{
fclaw_domain_t* domain = fclaw_domain_new_unitsquare(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob1, domain);
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob2, domain);

fclaw_clawpatch_options_t* opts = fclaw_clawpatch_options_new(2);
Expand All @@ -59,9 +59,9 @@ TEST_CASE("2d fclaw_clawpatch_vtable_initialize stores two separate vtables in t
TEST_CASE("3dx fclaw_clawpatch_vtable_initialize stores two separate vtables in two separate globs")
{
fclaw_domain_t* domain = fclaw_domain_new_unitsquare(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob1, domain);
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob2, domain);

fclaw_clawpatch_options_t* opts = fclaw_clawpatch_options_new(3);
Expand All @@ -85,7 +85,7 @@ TEST_CASE("3dx fclaw_clawpatch_vtable_initialize stores two separate vtables in
TEST_CASE("2d fclaw_clawpatch_vtable_initialize sets is_set flag")
{
fclaw_domain_t* domain = fclaw_domain_new_unitsquare(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob, domain);

fclaw_clawpatch_options_t* opts = fclaw_clawpatch_options_new(2);
Expand All @@ -105,7 +105,7 @@ TEST_CASE("2d fclaw_clawpatch_vtable_initialize sets is_set flag")
TEST_CASE("3dx fclaw_clawpatch_vtable_initialize sets is_set flag")
{
fclaw_domain_t* domain = fclaw_domain_new_unitsquare(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob, domain);

fclaw_clawpatch_options_t* opts = fclaw_clawpatch_options_new(3);
Expand All @@ -127,9 +127,9 @@ TEST_CASE("3dx fclaw_clawpatch_vtable_initialize sets is_set flag")
TEST_CASE("2d fclaw_clawpatch_vtable_initialize fails if called twice on a glob")
{
fclaw_domain_t* domain = fclaw_domain_new_unitsquare(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob1, domain);
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob2, domain);

fclaw_clawpatch_options_t* opts = fclaw_clawpatch_options_new(2);
Expand All @@ -153,9 +153,9 @@ TEST_CASE("2d fclaw_clawpatch_vtable_initialize fails if called twice on a glob"
TEST_CASE("3dx fclaw_clawpatch_vtable_initialize fails if called twice on a glob")
{
fclaw_domain_t* domain = fclaw_domain_new_unitsquare(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob1 = fclaw_global_new();
fclaw_global_t* glob1 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob1, domain);
fclaw_global_t* glob2 = fclaw_global_new();
fclaw_global_t* glob2 = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob2, domain);

fclaw_clawpatch_options_t* opts = fclaw_clawpatch_options_new(3);
Expand Down
10 changes: 5 additions & 5 deletions src/patches/clawpatch/fclaw_clawpatch.h.3d.TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct SinglePatchDomain {
fclaw_clawpatch_options_t* opts;

SinglePatchDomain(){
glob = fclaw_global_new();
glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
opts = fclaw_clawpatch_options_new(3);
memset(&fopts, 0, sizeof(fopts));
fopts.mi=1;
Expand Down Expand Up @@ -119,7 +119,7 @@ struct OctDomain {
fclaw_clawpatch_options_t* opts;

OctDomain(){
glob = fclaw_global_new();
glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
opts = fclaw_clawpatch_options_new(3);
memset(&fopts, 0, sizeof(fopts));
fopts.mi=1;
Expand Down Expand Up @@ -176,7 +176,7 @@ struct OctDomain {
TEST_CASE("3d fclaw_clawpatch_vtable_initialize")
{
fclaw_domain_t* domain = fclaw_domain_new_unitcube(sc_MPI_COMM_WORLD, 1);
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_global_store_domain(glob, domain);

fclaw_clawpatch_options_t* opts = fclaw_clawpatch_options_new(3);
Expand Down Expand Up @@ -259,7 +259,7 @@ TEST_CASE("3d fclaw_clawpatch patch_build")
for(const int& rhs_fields : {0,2})
for(fclaw_build_mode_t build_mode : {FCLAW_BUILD_FOR_GHOST_AREA_COMPUTED, FCLAW_BUILD_FOR_UPDATE})
{
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;

fclaw_options_t fopts;
memset(&fopts, 0, sizeof(fopts));
Expand Down Expand Up @@ -683,7 +683,7 @@ TEST_CASE("3d fclaw_clawpatch_metric_scalar")
/* DAC : Fix this test for fclaw3d_metric? */
TEST_CASE("3d fclaw_clawpatch_metric_vector")
{
fclaw_global_t* glob = fclaw_global_new();
fclaw_global_t* glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
fclaw_vtables_initialize(glob);

SinglePatchDomain test_data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct TestData {
fclaw_clawpatch_vtable_t * clawpatch_vt;

TestData(fclaw_domain_t* domain, fclaw_map_context_t* map, int minlevel, int maxlevel){
glob = fclaw_global_new();
glob = fclaw_global_new_comm(sc_MPI_COMM_SELF, 1, 0);;
opts = fclaw_clawpatch_options_new(3);
memset(&fopts, 0, sizeof(fopts));
fopts.mi=1;
Expand Down
Loading
Loading