fixed last frame with subframes

This commit is contained in:
2019-09-30 12:43:37 +02:00
parent dd2fe28ce6
commit 142b184e62

View File

@ -379,7 +379,8 @@ int main(int argc, char *argv[]) {
}
#endif
else {
if (subframes>0 && insubframe>0) {
if (subframes>0 ) {
if (insubframe>0) {
sprintf(ofname,"%s_sf%ld_%ld.tiff",fname,nnsubframe,fileindex);
// mt->writeImage(ofname);
doutf= new float[nnx*nny];
@ -403,6 +404,7 @@ int main(int argc, char *argv[]) {
nsubframes++;
insubframe=0;
send_something=1;
}
} else {
sprintf(ofname,"%s_%ld.tiff",fname,fileindex);
mt->writeImage(ofname);