From caadfb1214b142be4512d86994fdfdac9a45206b Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Thu, 12 Sep 2013 22:09:32 +0200 Subject: Regenerate code (Kranc commit 3237af2566109f099ee78a7effb511a65dc18ae0) --- ML_WaveToy/src/Boundaries.cc | 142 +++++++++++++++++------------------ ML_WaveToy/src/RegisterSymmetries.cc | 4 +- 2 files changed, 73 insertions(+), 73 deletions(-) (limited to 'ML_WaveToy') diff --git a/ML_WaveToy/src/Boundaries.cc b/ML_WaveToy/src/Boundaries.cc index ee5de54..c15e9af 100644 --- a/ML_WaveToy/src/Boundaries.cc +++ b/ML_WaveToy/src/Boundaries.cc @@ -32,17 +32,6 @@ extern "C" void ML_WaveToy_SelectBoundConds(CCTK_ARGUMENTS) CCTK_INT ierr CCTK_ATTRIBUTE_UNUSED = 0; - if (CCTK_EQUALS(WT_rho_bound, "none" ) || - CCTK_EQUALS(WT_rho_bound, "static") || - CCTK_EQUALS(WT_rho_bound, "flat" ) || - CCTK_EQUALS(WT_rho_bound, "zero" ) ) - { - ierr = Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, 1, -1, - "ML_WaveToy::WT_rho", WT_rho_bound); - if (ierr < 0) - CCTK_WARN(0, "Failed to register WT_rho_bound BC for ML_WaveToy::WT_rho!"); - } - if (CCTK_EQUALS(WT_u_bound, "none" ) || CCTK_EQUALS(WT_u_bound, "static") || CCTK_EQUALS(WT_u_bound, "flat" ) || @@ -54,15 +43,15 @@ extern "C" void ML_WaveToy_SelectBoundConds(CCTK_ARGUMENTS) CCTK_WARN(0, "Failed to register WT_u_bound BC for ML_WaveToy::WT_u!"); } - if (CCTK_EQUALS(rho_bound, "none" ) || - CCTK_EQUALS(rho_bound, "static") || - CCTK_EQUALS(rho_bound, "flat" ) || - CCTK_EQUALS(rho_bound, "zero" ) ) + if (CCTK_EQUALS(WT_rho_bound, "none" ) || + CCTK_EQUALS(WT_rho_bound, "static") || + CCTK_EQUALS(WT_rho_bound, "flat" ) || + CCTK_EQUALS(WT_rho_bound, "zero" ) ) { - ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES, 1, -1, - "ML_WaveToy::rho", rho_bound); + ierr = Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, 1, -1, + "ML_WaveToy::WT_rho", WT_rho_bound); if (ierr < 0) - CCTK_WARN(0, "Failed to register rho_bound BC for ML_WaveToy::rho!"); + CCTK_WARN(0, "Failed to register WT_rho_bound BC for ML_WaveToy::WT_rho!"); } if (CCTK_EQUALS(u_bound, "none" ) || @@ -76,23 +65,15 @@ extern "C" void ML_WaveToy_SelectBoundConds(CCTK_ARGUMENTS) CCTK_WARN(0, "Failed to register u_bound BC for ML_WaveToy::u!"); } - if (CCTK_EQUALS(WT_rho_bound, "radiative")) + if (CCTK_EQUALS(rho_bound, "none" ) || + CCTK_EQUALS(rho_bound, "static") || + CCTK_EQUALS(rho_bound, "flat" ) || + CCTK_EQUALS(rho_bound, "zero" ) ) { - /* select radiation boundary condition */ - static CCTK_INT handle_WT_rho_bound CCTK_ATTRIBUTE_UNUSED = -1; - if (handle_WT_rho_bound < 0) handle_WT_rho_bound = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE); - if (handle_WT_rho_bound < 0) CCTK_WARN(0, "could not create table!"); - if (Util_TableSetReal(handle_WT_rho_bound , WT_rho_bound_limit, "LIMIT") < 0) - CCTK_WARN(0, "could not set LIMIT value in table!"); - if (Util_TableSetReal(handle_WT_rho_bound ,WT_rho_bound_speed, "SPEED") < 0) - CCTK_WARN(0, "could not set SPEED value in table!"); - - ierr = Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, 1, handle_WT_rho_bound, - "ML_WaveToy::WT_rho", "Radiation"); - + ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES, 1, -1, + "ML_WaveToy::rho", rho_bound); if (ierr < 0) - CCTK_WARN(0, "Failed to register Radiation BC for ML_WaveToy::WT_rho!"); - + CCTK_WARN(0, "Failed to register rho_bound BC for ML_WaveToy::rho!"); } if (CCTK_EQUALS(WT_u_bound, "radiative")) @@ -114,22 +95,22 @@ extern "C" void ML_WaveToy_SelectBoundConds(CCTK_ARGUMENTS) } - if (CCTK_EQUALS(rho_bound, "radiative")) + if (CCTK_EQUALS(WT_rho_bound, "radiative")) { /* select radiation boundary condition */ - static CCTK_INT handle_rho_bound CCTK_ATTRIBUTE_UNUSED = -1; - if (handle_rho_bound < 0) handle_rho_bound = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE); - if (handle_rho_bound < 0) CCTK_WARN(0, "could not create table!"); - if (Util_TableSetReal(handle_rho_bound , rho_bound_limit, "LIMIT") < 0) + static CCTK_INT handle_WT_rho_bound CCTK_ATTRIBUTE_UNUSED = -1; + if (handle_WT_rho_bound < 0) handle_WT_rho_bound = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE); + if (handle_WT_rho_bound < 0) CCTK_WARN(0, "could not create table!"); + if (Util_TableSetReal(handle_WT_rho_bound , WT_rho_bound_limit, "LIMIT") < 0) CCTK_WARN(0, "could not set LIMIT value in table!"); - if (Util_TableSetReal(handle_rho_bound ,rho_bound_speed, "SPEED") < 0) - CCTK_WARN(0, "could not set SPEED value in table!"); + if (Util_TableSetReal(handle_WT_rho_bound ,WT_rho_bound_speed, "SPEED") < 0) + CCTK_WARN(0, "could not set SPEED value in table!"); - ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES, 1, handle_rho_bound, - "ML_WaveToy::rho", "Radiation"); + ierr = Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, 1, handle_WT_rho_bound, + "ML_WaveToy::WT_rho", "Radiation"); if (ierr < 0) - CCTK_WARN(0, "Failed to register Radiation BC for ML_WaveToy::rho!"); + CCTK_WARN(0, "Failed to register Radiation BC for ML_WaveToy::WT_rho!"); } @@ -152,20 +133,22 @@ extern "C" void ML_WaveToy_SelectBoundConds(CCTK_ARGUMENTS) } - if (CCTK_EQUALS(WT_rho_bound, "scalar")) + if (CCTK_EQUALS(rho_bound, "radiative")) { - /* select scalar boundary condition */ - static CCTK_INT handle_WT_rho_bound CCTK_ATTRIBUTE_UNUSED = -1; - if (handle_WT_rho_bound < 0) handle_WT_rho_bound = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE); - if (handle_WT_rho_bound < 0) CCTK_WARN(0, "could not create table!"); - if (Util_TableSetReal(handle_WT_rho_bound ,WT_rho_bound_scalar, "SCALAR") < 0) - CCTK_WARN(0, "could not set SCALAR value in table!"); + /* select radiation boundary condition */ + static CCTK_INT handle_rho_bound CCTK_ATTRIBUTE_UNUSED = -1; + if (handle_rho_bound < 0) handle_rho_bound = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE); + if (handle_rho_bound < 0) CCTK_WARN(0, "could not create table!"); + if (Util_TableSetReal(handle_rho_bound , rho_bound_limit, "LIMIT") < 0) + CCTK_WARN(0, "could not set LIMIT value in table!"); + if (Util_TableSetReal(handle_rho_bound ,rho_bound_speed, "SPEED") < 0) + CCTK_WARN(0, "could not set SPEED value in table!"); - ierr = Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, 1, handle_WT_rho_bound, - "ML_WaveToy::WT_rho", "scalar"); + ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES, 1, handle_rho_bound, + "ML_WaveToy::rho", "Radiation"); if (ierr < 0) - CCTK_WARN(0, "Failed to register Scalar BC for ML_WaveToy::WT_rho!"); + CCTK_WARN(0, "Failed to register Radiation BC for ML_WaveToy::rho!"); } @@ -186,20 +169,20 @@ extern "C" void ML_WaveToy_SelectBoundConds(CCTK_ARGUMENTS) } - if (CCTK_EQUALS(rho_bound, "scalar")) + if (CCTK_EQUALS(WT_rho_bound, "scalar")) { /* select scalar boundary condition */ - static CCTK_INT handle_rho_bound CCTK_ATTRIBUTE_UNUSED = -1; - if (handle_rho_bound < 0) handle_rho_bound = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE); - if (handle_rho_bound < 0) CCTK_WARN(0, "could not create table!"); - if (Util_TableSetReal(handle_rho_bound ,rho_bound_scalar, "SCALAR") < 0) - CCTK_WARN(0, "could not set SCALAR value in table!"); + static CCTK_INT handle_WT_rho_bound CCTK_ATTRIBUTE_UNUSED = -1; + if (handle_WT_rho_bound < 0) handle_WT_rho_bound = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE); + if (handle_WT_rho_bound < 0) CCTK_WARN(0, "could not create table!"); + if (Util_TableSetReal(handle_WT_rho_bound ,WT_rho_bound_scalar, "SCALAR") < 0) + CCTK_WARN(0, "could not set SCALAR value in table!"); - ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES, 1, handle_rho_bound, - "ML_WaveToy::rho", "scalar"); + ierr = Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, 1, handle_WT_rho_bound, + "ML_WaveToy::WT_rho", "scalar"); if (ierr < 0) - CCTK_WARN(0, "Error in registering Scalar BC for ML_WaveToy::rho!"); + CCTK_WARN(0, "Failed to register Scalar BC for ML_WaveToy::WT_rho!"); } @@ -218,6 +201,23 @@ extern "C" void ML_WaveToy_SelectBoundConds(CCTK_ARGUMENTS) if (ierr < 0) CCTK_WARN(0, "Error in registering Scalar BC for ML_WaveToy::u!"); + } + + if (CCTK_EQUALS(rho_bound, "scalar")) + { + /* select scalar boundary condition */ + static CCTK_INT handle_rho_bound CCTK_ATTRIBUTE_UNUSED = -1; + if (handle_rho_bound < 0) handle_rho_bound = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE); + if (handle_rho_bound < 0) CCTK_WARN(0, "could not create table!"); + if (Util_TableSetReal(handle_rho_bound ,rho_bound_scalar, "SCALAR") < 0) + CCTK_WARN(0, "could not set SCALAR value in table!"); + + ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES, 1, handle_rho_bound, + "ML_WaveToy::rho", "scalar"); + + if (ierr < 0) + CCTK_WARN(0, "Error in registering Scalar BC for ML_WaveToy::rho!"); + } return; } @@ -225,25 +225,25 @@ extern "C" void ML_WaveToy_SelectBoundConds(CCTK_ARGUMENTS) /* template for entries in parameter file: -#$bound$#ML_WaveToy::WT_rho_bound = "skip" -#$bound$#ML_WaveToy::WT_rho_bound_speed = 1.0 -#$bound$#ML_WaveToy::WT_rho_bound_limit = 0.0 -#$bound$#ML_WaveToy::WT_rho_bound_scalar = 0.0 - #$bound$#ML_WaveToy::WT_u_bound = "skip" #$bound$#ML_WaveToy::WT_u_bound_speed = 1.0 #$bound$#ML_WaveToy::WT_u_bound_limit = 0.0 #$bound$#ML_WaveToy::WT_u_bound_scalar = 0.0 -#$bound$#ML_WaveToy::rho_bound = "skip" -#$bound$#ML_WaveToy::rho_bound_speed = 1.0 -#$bound$#ML_WaveToy::rho_bound_limit = 0.0 -#$bound$#ML_WaveToy::rho_bound_scalar = 0.0 +#$bound$#ML_WaveToy::WT_rho_bound = "skip" +#$bound$#ML_WaveToy::WT_rho_bound_speed = 1.0 +#$bound$#ML_WaveToy::WT_rho_bound_limit = 0.0 +#$bound$#ML_WaveToy::WT_rho_bound_scalar = 0.0 #$bound$#ML_WaveToy::u_bound = "skip" #$bound$#ML_WaveToy::u_bound_speed = 1.0 #$bound$#ML_WaveToy::u_bound_limit = 0.0 #$bound$#ML_WaveToy::u_bound_scalar = 0.0 +#$bound$#ML_WaveToy::rho_bound = "skip" +#$bound$#ML_WaveToy::rho_bound_speed = 1.0 +#$bound$#ML_WaveToy::rho_bound_limit = 0.0 +#$bound$#ML_WaveToy::rho_bound_scalar = 0.0 + */ diff --git a/ML_WaveToy/src/RegisterSymmetries.cc b/ML_WaveToy/src/RegisterSymmetries.cc index 3c24883..6bf3ad0 100644 --- a/ML_WaveToy/src/RegisterSymmetries.cc +++ b/ML_WaveToy/src/RegisterSymmetries.cc @@ -19,12 +19,12 @@ extern "C" void ML_WaveToy_RegisterSymmetries(CCTK_ARGUMENTS) sym[0] = 1; sym[1] = 1; sym[2] = 1; - SetCartSymVN(cctkGH, sym, "ML_WaveToy::rho"); + SetCartSymVN(cctkGH, sym, "ML_WaveToy::u"); sym[0] = 1; sym[1] = 1; sym[2] = 1; - SetCartSymVN(cctkGH, sym, "ML_WaveToy::u"); + SetCartSymVN(cctkGH, sym, "ML_WaveToy::rho"); sym[0] = 1; sym[1] = 1; -- cgit v1.2.3