diff options
author | schnetter <schnetter@b2a53a04-0f4f-0410-87ed-f9f25ced00cf> | 2004-10-08 19:07:34 +0000 |
---|---|---|
committer | schnetter <schnetter@b2a53a04-0f4f-0410-87ed-f9f25ced00cf> | 2004-10-08 19:07:34 +0000 |
commit | 9bfb372b21b2a6a3fcdc34c4fc988a22c2bf101a (patch) | |
tree | 9c574555d06c027892ea06ad51caca9ebe95d7b9 /src/ParamCheck.c | |
parent | 56edb0f45bea22c4405509665b921476d6461dda (diff) |
Use boolean instead of integer for parameter use_sources.
Fix segmentation fault when there is no matter.
Add prototype for function relax.
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/TwoPunctures/trunk@24 b2a53a04-0f4f-0410-87ed-f9f25ced00cf
Diffstat (limited to 'src/ParamCheck.c')
-rw-r--r-- | src/ParamCheck.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ParamCheck.c b/src/ParamCheck.c index 9ec622e..9a13add 100644 --- a/src/ParamCheck.c +++ b/src/ParamCheck.c @@ -18,15 +18,13 @@ TwoPunctures_ParamCheck (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; - if (par_use_sources) + if (use_sources) { CCTK_INFO("Solving for BH-NS"); - if (CCTK_IsFunctionAliased ("Set_Rho_ADM")) - CCTK_INFO("Aliased Functions found"); - else + if (! CCTK_IsFunctionAliased ("Set_Rho_ADM")) CCTK_WARN(0, "I found no (aliased) function for matter sources, but " - "was said to use matter.\n"); + "was said to use matter."); } else - CCTK_INFO("not using sources (only BHs)"); + CCTK_INFO("Solving for BHs"); } |