aboutsummaryrefslogtreecommitdiff
path: root/src/jtutil
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-07-26 14:57:48 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-07-26 14:57:48 +0000
commit720ce53a79ef5bdff53b3db18bc45c46101aa0fa (patch)
tree5e15ab1aa1346cdbe63a8dd3e8cad3010d438827 /src/jtutil
parent625a1471be9b782048d0db40fec675bee6bca0a4 (diff)
re-sync changes from laptop
- parameter to control how Jacobian is computed - can hardwire geometry to Schwarzschild/EF git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@661 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/jtutil')
-rw-r--r--src/jtutil/miscfp.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jtutil/miscfp.cc b/src/jtutil/miscfp.cc
index 20060a2..3d19276 100644
--- a/src/jtutil/miscfp.cc
+++ b/src/jtutil/miscfp.cc
@@ -73,9 +73,8 @@ namespace jtutil
{
double arctan_xy(double x, double y)
{
-return ((x == 0.0) && (y == 0.0))
- ?
- : std::atan2(y, x); // note reversed argument order (y,x)!!
+// note reversed argument order (y,x) in std::atan2() function
+return ((x == 0.0) && (y == 0.0)) ? 0.0 : std::atan2(y,x);
}
} // namespace jtutil::