[Dart-dev] [5637] DART/branches/development/obs_sequence/obs_seq_verify.f90: Actually check that the ensemble members are in the same order in all files .
nancy at ucar.edu
nancy at ucar.edu
Mon Apr 2 10:17:00 MDT 2012
Revision: 5637
Author: thoar
Date: 2012-04-02 10:17:00 -0600 (Mon, 02 Apr 2012)
Log Message:
-----------
Actually check that the ensemble members are in the same order in all files.
The previous check was not correct.
Modified Paths:
--------------
DART/branches/development/obs_sequence/obs_seq_verify.f90
-------------- next part --------------
Modified: DART/branches/development/obs_sequence/obs_seq_verify.f90
===================================================================
--- DART/branches/development/obs_sequence/obs_seq_verify.f90 2012-04-02 15:37:44 UTC (rev 5636)
+++ DART/branches/development/obs_sequence/obs_seq_verify.f90 2012-04-02 16:17:00 UTC (rev 5637)
@@ -383,17 +383,16 @@
! The first trip through sets the module_obs_copy_names so we can
! be sure we are stuffing compatible objects into the same slots
if ( ifile == 1 ) then
- module_obs_copy_names = obs_copy_names
+ module_obs_copy_names = obs_copy_names(copy_indices(1:ensemble_size))
else
- ! FIXME more robust checks
+ ! Check to make sure the ensemble members are in the expected copies
do i = 1,ensemble_size
if ( obs_copy_names(copy_indices(i)) /= module_obs_copy_names(i) ) then
-
- write(string1,*)'mismatch in observation copies ',&
- trim(obs_copy_names(copy_indices(i)))
- string2 = trim(module_obs_copy_names(i))
+ write(string1,'(''module has '',A)') trim(module_obs_copy_names(i))
+ write(string2,'(A,'' has '',A)') trim(obs_seq_in_file_name), &
+ trim(obs_copy_names(copy_indices(i)))
call error_handler(E_ERR,'obs_seq_verify', &
- string1,source,revision,revdate,text2=string2)
+ 'mismatch in observation copies',source,revision,revdate,text2=string1,text3=string2)
endif
enddo
endif
More information about the Dart-dev
mailing list