Commit a41e044e authored by Christopher Subich's avatar Christopher Subich
Browse files

Fix for wavenumbers of null transform

Parformer.cpp -- previously, an all-NULL transform being
asked for its wavenumbers would only return an array of size
one, rather than one of appropriate length for the (real)
"temporary" array.  This could conceivably have caused
problems for the graceful use of 3D routines on
2D-but-layered fields.
parent 1a1c8814
......@@ -297,7 +297,7 @@ namespace Transformer {
if (use_complex()) {
lb = get_complex_temp()->lbound(dim);
ub = get_complex_temp()->ubound(dim);
} else if (Tx != NONE || Ty != NONE || Tz != NONE) {
} else { // if (Tx != NONE || Ty != NONE || Tz != NONE) {
lb = get_real_temp()->lbound(dim);
ub = get_real_temp()->ubound(dim);
}
......@@ -317,7 +317,7 @@ namespace Transformer {
switch(type) {
case NONE:
out(lb) = 0;
out = 0;
break;
case SINE:
for (int i = lb; i <= ub; i++) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment