diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-12-19 22:10:39 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-12-19 22:10:39 (GMT) |
commit | 2d56cdf9d3e533acbd3f7118f04f5855ac1aea68 (patch) | |
tree | 6b5030589622d6cb9d4416e16644e9d020fbb6a7 /ast | |
parent | 67dc3bcba40f1a2afdb806e790501c440a806160 (diff) | |
download | blt-2d56cdf9d3e533acbd3f7118f04f5855ac1aea68.zip blt-2d56cdf9d3e533acbd3f7118f04f5855ac1aea68.tar.gz blt-2d56cdf9d3e533acbd3f7118f04f5855ac1aea68.tar.bz2 |
fix issue with astLinearApprox
Diffstat (limited to 'ast')
-rw-r--r-- | ast/mapping.c | 7 |
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 |