diff --git a/build/source/actors/FileAccessActor.h b/build/source/actors/FileAccessActor.h index 57701b65203c4eb0ee4994f092946352a6bcc7e2..387728fe0d80048a0f9c447dd31bca13844df177 100644 --- a/build/source/actors/FileAccessActor.h +++ b/build/source/actors/FileAccessActor.h @@ -38,7 +38,7 @@ behavior file_access_actor(stateful_actor<file_access_state>* self, int startGRU } // Check if we have loaded all forcing files, if no read more data - if(self->state.filesLoaded <= self->state.numFiles) { + if(self->state.filesLoaded != self->state.numFiles) { self->send(self, access_forcing_internal_v, currentFile + 1); } @@ -57,7 +57,8 @@ behavior file_access_actor(stateful_actor<file_access_state>* self, int startGRU self->send(self, access_forcing_internal_v, currentFile + 1); } else { - aout(self) << "All Forcing Files Loaded \n"; + if (debug) + aout(self) << "All Forcing Files Loaded \n"; }