-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from lwJi/test_newradx
TestNewRadX: Separate TestNewRadX from NewRadX
- Loading branch information
Showing
64 changed files
with
1,584 additions
and
1,212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Configuration definition for thorn NewRadX | ||
|
||
REQUIRES GSL Loop | ||
REQUIRES Loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1 @@ | ||
# Parameter definitions for thorn NewRadX | ||
# | ||
# To use radiative boundary conditions in another thorn, the parameters here are not relevant. | ||
# These parameters are only used in the unit test for NewRadX, which applies NewRadX in the evolution of a test scalar field | ||
BOOLEAN run_test "Run scalar field evolution test" | ||
{ | ||
} "no" | ||
|
||
BOOLEAN test_use_newradx "Use radiative boundary conditions for scalar field" | ||
{ | ||
} "yes" | ||
|
||
BOOLEAN test_add_dissipation "Add Kreiss-Oliger dissipation to scalar field RHS" | ||
{ | ||
} "yes" | ||
|
||
CCTK_REAL eps_dissipation "Coefficient for Kreiss-Oliger dissipation" | ||
{ | ||
0.0:1.0 :: "" | ||
} 0.15 | ||
|
||
CCTK_REAL n_falloff "Exponent of the falloff term r^(-n_falloff) in the scalar field potential" | ||
{ | ||
0.0:* :: "" | ||
} 2.0 | ||
|
||
|
||
# Parameters scalar field test initial data | ||
CCTK_REAL gaussian_a0 "Scalar field initial Gaussian amplitude" | ||
{ | ||
*:* :: "" | ||
} 1.0 | ||
|
||
CCTK_REAL gaussian_w0 "Scalar field initial Gaussian profile width" | ||
{ | ||
0.0:* :: "" | ||
} 1.0 | ||
|
||
CCTK_REAL gaussian_x0 "Scalar field initial Gaussian profile center" | ||
{ | ||
*:* :: "" | ||
} 0.0 | ||
|
||
CCTK_REAL gaussian_y0 "Scalar field initial Gaussian profile center" | ||
{ | ||
*:* :: "" | ||
} 0.0 | ||
|
||
CCTK_REAL gaussian_z0 "Scalar field initial Gaussian profile center" | ||
{ | ||
*:* :: "" | ||
} 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1 @@ | ||
# Schedule definitions for thorn NewRadX | ||
|
||
if (run_test) { | ||
STORAGE: state | ||
|
||
SCHEDULE NewRadX_Init AT initial | ||
{ | ||
LANG: C | ||
WRITES: state(interior) | ||
SYNC: state | ||
} "Initialize scalar wave state" | ||
|
||
SCHEDULE NewRadX_EstimateError AT postinitial | ||
{ | ||
LANG: C | ||
READS: state(everywhere) | ||
WRITES: CarpetX::regrid_error(interior) | ||
} "Estimate error for regridding" | ||
|
||
SCHEDULE NewRadX_EstimateError AT poststep | ||
{ | ||
LANG: C | ||
READS: state(everywhere) | ||
WRITES: CarpetX::regrid_error(interior) | ||
} "Estimate error for regridding" | ||
|
||
SCHEDULE NewRadX_RHS IN ODESolvers_RHS | ||
{ | ||
LANG: C | ||
READS: state(everywhere) | ||
WRITES: rhs(interior) | ||
SYNC: rhs | ||
} "Calculate scalar wave RHS" | ||
|
||
SCHEDULE NewRadX_CompareSolution IN ODESolvers_PostStep | ||
{ | ||
LANG: C | ||
READS: state(interior) | ||
WRITES: error(interior) | ||
SYNC: error | ||
} "Calculate error between numerical and analytic solutions" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Main make.code.defn file for thorn NewRadX | ||
|
||
# Source files in this directory | ||
SRCS = newradx.cxx \ | ||
test_newradx.cxx | ||
SRCS = newradx.cxx | ||
|
||
# Subdirectories containing source files | ||
SUBDIRS = |
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
NewRadX/test/scalarwave_newradx/newradx-error.it000060.x.tsv
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.