summaryrefslogtreecommitdiffstats
path: root/ast
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-12-19 22:10:39 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-12-19 22:10:39 (GMT)
commit2d56cdf9d3e533acbd3f7118f04f5855ac1aea68 (patch)
tree6b5030589622d6cb9d4416e16644e9d020fbb6a7 /ast
parent67dc3bcba40f1a2afdb806e790501c440a806160 (diff)
downloadblt-2d56cdf9d3e533acbd3f7118f04f5855ac1aea68.zip
blt-2d56cdf9d3e533acbd3f7118f04f5855ac1aea68.tar.gz
blt-2d56cdf9d3e533acbd3f7118f04f5855ac1aea68.tar.bz2
fix issue with astLinearApprox
Diffstat (limited to 'ast')
-rw-r--r--ast/mapping.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ast/mapping.c b/ast/mapping.c
index ce322a9..240b260 100644
--- a/ast/mapping.c
+++ b/ast/mapping.c
@@ -6616,8 +6616,12 @@ f - A value of .FALSE.
/* Check whether any transformed coordinates are bad. If so, the
transformation cannot be linear, so give up trying to fit it. */
if ( ( out1 == AST__BAD ) || ( out2 == AST__BAD ) ) {
+ /*
linear = 0;
break;
+ */
+ out1 = 0;
+ out2 = 0;
}
/* If possible, determine the gradient along this dimension, storing
@@ -6809,8 +6813,11 @@ f - A value of .FALSE.
for ( coord_out = 0; coord_out < ndim_out; coord_out++ ) {
y = ptr_out_t[ coord_out ][ point ];
if ( y == AST__BAD ) {
+ /*
linear = 0;
break;
+ */
+ y = 0;
}
/* Apply the fitted transformation to the input coordinates to obtain