diff --git a/src/cosp.F90 b/src/cosp.F90 index b172ae1278..3da7a06577 100755 --- a/src/cosp.F90 +++ b/src/cosp.F90 @@ -509,7 +509,7 @@ function COSP_SIMULATOR(cospIN,cospgridIN,cospOUT,start_idx,stop_idx,debug) Lrttov_column = .true. ! Set flag to deallocate rttov types (only done on final call to simulator) - if (size(cospOUT%isccp_meantb) .eq. stop_idx) lrttov_cleanUp = .true. + if (associated(cospOUT%isccp_meantb) .and. size(cospOUT%isccp_meantb) .eq. stop_idx) lrttov_cleanUp = .true. ! ISCCP column if (associated(cospOUT%isccp_fq) .or. &