From f29610450c786fc03835570f387a25a7dedd53de Mon Sep 17 00:00:00 2001 From: KyleKlenk <kyle.c.klenk@gmail.com> Date: Mon, 7 Nov 2022 15:55:29 -0600 Subject: [PATCH] Cleaned up some of the printing --- .../actors/file_access_actor/cpp_code/file_access_actor.cpp | 1 - .../actors/file_access_actor/fortran_code/read_attribute.f90 | 4 +++- build/source/actors/hru_actor/cpp_code/hru_actor.cpp | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build/source/actors/file_access_actor/cpp_code/file_access_actor.cpp b/build/source/actors/file_access_actor/cpp_code/file_access_actor.cpp index 52dc386..02f4956 100644 --- a/build/source/actors/file_access_actor/cpp_code/file_access_actor.cpp +++ b/build/source/actors/file_access_actor/cpp_code/file_access_actor.cpp @@ -133,7 +133,6 @@ behavior file_access_actor(stateful_actor<file_access_state>* self, int start_gr }, [=] (get_attributes_params, int index_gru, caf::actor actor_to_respond) { - aout(self) << "index_gru = " << index_gru << std::endl; // From Attributes File std::vector<double> attr_struct_to_send = self->state.attr_structs_for_hrus[index_gru-1]; std::vector<int> type_struct_to_send = self->state.type_structs_for_hrus[index_gru-1]; diff --git a/build/source/actors/file_access_actor/fortran_code/read_attribute.f90 b/build/source/actors/file_access_actor/fortran_code/read_attribute.f90 index dfd20cd..878c811 100644 --- a/build/source/actors/file_access_actor/fortran_code/read_attribute.f90 +++ b/build/source/actors/file_access_actor/fortran_code/read_attribute.f90 @@ -302,7 +302,9 @@ subroutine readAttributeFromNetCDF(ncid, index_gru, index_hru, num_var, & varIndx = get_ixAttr('aspect') ! check that the variable was not found in the attribute file if(.not. checkAttr(varIndx)) then - write(*,*) NEW_LINE('A')//'INFO: aspect not found in the input attribute file, continuing ...'//NEW_LINE('A') + if (index_gru == 1) then + write(*,*) NEW_LINE('A')//'INFO: aspect not found in the input attribute file, continuing ...'//NEW_LINE('A') + endif attr_struct%var(varIndx) = nr_realMissing ! populate variable with out-of-range value, used later checkAttr(varIndx) = .true. endif diff --git a/build/source/actors/hru_actor/cpp_code/hru_actor.cpp b/build/source/actors/hru_actor/cpp_code/hru_actor.cpp index 9c54546..f274309 100644 --- a/build/source/actors/hru_actor/cpp_code/hru_actor.cpp +++ b/build/source/actors/hru_actor/cpp_code/hru_actor.cpp @@ -51,8 +51,6 @@ behavior hru_actor(stateful_actor<hru_state>* self, int refGRU, int indxGRU, self->quit(); } - aout(self) << "Num Steps =" << self->state.num_steps << std::endl; - // Get attributes self->send(self->state.file_access_actor, get_attributes_params_v, self->state.indxGRU, self); -- GitLab