Changeset 2587 for branches/TAM_V3_0/NEMOTAM/OPATAM_SRC/tamtst.F90
- Timestamp:
- 2011-02-15T12:58:59+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TAM_V3_0/NEMOTAM/OPATAM_SRC/tamtst.F90
r1885 r2587 54 54 #endif 55 55 56 USE step_tam_cpd ! Temporary 57 56 58 IMPLICIT NONE 57 59 … … 60 62 61 63 PUBLIC & 62 & tst opt, & !: Scalar product test of the adjoint routines64 & tsttam, & !: Scalar product test of the adjoint routines 63 65 & numadt !: File unit number for adjoint test output 64 66 … … 69 71 CONTAINS 70 72 71 SUBROUTINE tst opt73 SUBROUTINE tsttam 72 74 !!----------------------------------------------------------------------- 73 75 !! 74 !! *** ROUTINE tst opt***76 !! *** ROUTINE tsttam *** 75 77 !! 76 !! ** Purpose : Apply various tests (linearization, adjoint , gradient)77 !! on the NEMO VARcode.78 !! ** Purpose : Apply various tests (linearization, adjoint) 79 !! on the NEMOTAM code. 78 80 !! 79 81 !! ** Method : … … 85 87 !! ! 07-11 (A. Weaver) Add adjoint tests 86 88 !! ! 09-03 (I. Mirouze) Filter call depends on type 87 !! ! 09-08 (F. Vigilant) Add tangent tests89 !! ! 09-08 (F. Vigilant) Split TAM and Var and add tangent tests 88 90 !!----------------------------------------------------------------------- 89 91 !! * Modules used … … 133 135 CALL par_esp 134 136 135 ! ---------------------------------------------------------------136 ! 1) Test the adjoint of the components of B137 ! ---------------------------------------------------------------138 139 ! Moved to NEMOVAR140 141 ! -----------------------------------------------------142 ! 2) Test the adjoint of H143 ! -----------------------------------------------------144 145 ! Moved to NEMOVAR146 147 137 #if defined key_tam 148 ! -----------------------------------------------------149 ! 3) Test the adjoint of the simplification operator150 ! -----------------------------------------------------151 152 ! Not yet implemented153 154 ! -----------------------------------------------------155 ! 4) Test the adjoint of the components of M (NEMOTAM)156 ! -----------------------------------------------------157 138 158 139 IF ( ln_tst_nemotam ) THEN 159 140 160 141 IF ( ln_tst_cpd_tam ) THEN 142 ! ----------------------------------------------------- 143 ! 1) Test the adjoint of the components of M (NEMOTAM) 144 ! ----------------------------------------------------- 161 145 ! *** initialize the reference trajectory 162 146 ! ------------ … … 206 190 IF (lwp) WRITE(numadt,*) 207 191 208 IF( lk_dynspg_rl ) & 209 & CALL dyn_spg_adj_tst( numadt ) ! Surface pressure gradient 192 CALL dyn_spg_adj_tst( numadt ) ! Surface pressure gradient 210 193 211 194 IF (lwp) WRITE(numadt,*) … … 292 275 ENDIF 293 276 294 ! *** Time-loop operator 295 ! ---------------------- 277 ! ----------------------------------------------------- 278 ! 2) Test the adjoint of of M (NEMOTAM) 279 ! ----------------------------------------------------- 296 280 IF ( ln_tst_stp_tam ) THEN 297 281 … … 303 287 304 288 ENDIF 305 306 ! *** Tangent accuracy 289 #if defined key_tst_tlm 290 ! ----------------------------------------------------- 291 ! 3) Test the Tangent accuracy 307 292 ! ---------------------- 308 293 IF ( ln_tst_tan ) THEN … … 310 295 IF (ln_tst_tan_cpd) THEN 311 296 312 CALL flush(numout)313 314 297 CALL dyn_hpg_tlm_tst( numadt ) 315 298 316 CALL flush(numout) 317 318 IF( lk_dynspg_rl ) & 319 & CALL dyn_spg_tlm_tst( numadt ) 320 321 CALL flush(numout) 299 CALL dyn_spg_tlm_tst( numadt ) 300 301 CALL sol_sor_tlm_tst( numadt ) 322 302 323 303 CALL zps_hde_tlm_tst( numadt ) 324 304 325 CALL flush(numout)326 327 305 CALL tra_sbc_tlm_tst( numadt ) 328 306 329 CALL flush(numout)330 331 307 CALL dyn_adv_tlm_tst( numadt ) 332 308 333 CALL flush(numout)334 335 309 CALL eos_tlm_tst( numadt ) 336 310 337 CALL flush(numout)338 339 311 CALL bn2_tlm_tst( numadt ) 340 312 341 CALL flush(numout)342 343 313 CALL tra_zdf_tlm_tst( numadt ) 344 314 345 CALL flush(numout)346 347 315 CALL tra_adv_tlm_tst( numadt ) 348 316 349 CALL flush(numout)350 351 317 CALL tra_ldf_tlm_tst( numadt ) 352 318 353 CALL flush(numout)354 319 ELSE 355 320 … … 363 328 364 329 ENDIF 365 330 #endif 366 331 ENDIF 367 332 #endif … … 372 337 IF (lwp) THEN 373 338 WRITE(numout,*) 374 WRITE(numout,*) ' tst opt: Finished testing operators'339 WRITE(numout,*) ' tsttam: Finished testing operators' 375 340 WRITE(numout,*) ' ------' 376 341 WRITE(numout,*) 377 342 ENDIF 378 343 CALL flush(numout) 379 END SUBROUTINE tst opt344 END SUBROUTINE tsttam 380 345 381 346 END MODULE tamtst
Note: See TracChangeset
for help on using the changeset viewer.