Changeset 8126
- Timestamp:
- 2017-06-02T09:53:43+02:00 (8 years ago)
- Location:
- trunk/NEMOGCM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/OPA_SRC/DIA/diadct.F90
r7646 r8126 240 240 !debug this section computing ? 241 241 lldebug=.FALSE. 242 IF( (jsec==nn_secdebug .OR. nn_secdebug==-1) .AND. kt==nit000+nn_dct-1 .AND. lwp) lldebug=.TRUE.242 IF( (jsec==nn_secdebug .OR. nn_secdebug==-1) .AND. kt==nit000+nn_dct-1 ) lldebug=.TRUE. 243 243 244 244 !Compute transport through section … … 249 249 IF( MOD(kt,nn_dctwri)==0 )THEN 250 250 251 IF( lwp .AND.kt==nit000+nn_dctwri-1 )WRITE(numout,*)" diadct: average transports and write at kt = ",kt251 IF( kt==nit000+nn_dctwri-1 )WRITE(numout,*)" diadct: average transports and write at kt = ",kt 252 252 253 253 !! divide arrays by nn_dctwri/nn_dct to obtain average … … 335 335 DO jsec=1,nb_sec_max !loop on the nb_sec sections 336 336 337 IF ( lwp .AND. ( jsec==nn_secdebug .OR. nn_secdebug==-1 )) &337 IF ( jsec==nn_secdebug .OR. nn_secdebug==-1 ) & 338 338 & WRITE(numout,*)'debuging for section number: ',jsec 339 339 … … 355 355 IF( jsec .NE. isec ) CALL ctl_stop( cltmp ) 356 356 357 IF( lwp .AND. ( jsec==nn_secdebug .OR. nn_secdebug==-1 ))WRITE(numout,*)"isec ",isec357 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 )WRITE(numout,*)"isec ",isec 358 358 359 359 READ(numdct_in)secs(jsec)%name … … 374 374 !----- 375 375 376 IF( lwp .AND. ( jsec==nn_secdebug .OR. nn_secdebug==-1 ))THEN376 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 )THEN 377 377 378 378 WRITE(clformat,'(a,i2,a)') '(A40,', nb_class_max,'(f8.3,1X))' … … 407 407 !debug 408 408 !----- 409 IF( lwp .AND. ( jsec==nn_secdebug .OR. nn_secdebug==-1 ))THEN409 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 )THEN 410 410 WRITE(numout,*)" List of points in global domain:" 411 411 DO jpt=1,iptglo … … 441 441 !debug 442 442 !----- 443 IF( lwp .AND. ( jsec==nn_secdebug .OR. nn_secdebug==-1 ))THEN443 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 )THEN 444 444 WRITE(numout,*)" List of points selected by the proc:" 445 445 DO jpt = 1,iptloc … … 459 459 !remove redundant points between processors 460 460 !------------------------------------------ 461 lldebug = .FALSE. ; IF ( (jsec==nn_secdebug .OR. nn_secdebug==-1) .AND. lwp) lldebug = .TRUE.461 lldebug = .FALSE. ; IF ( jsec==nn_secdebug .OR. nn_secdebug==-1 ) lldebug = .TRUE. 462 462 IF( iptloc .NE. 0 )THEN 463 463 CALL removepoints(secs(jsec),'I','top_list',lldebug) … … 475 475 !debug 476 476 !----- 477 IF( lwp .AND. ( jsec==nn_secdebug .OR. nn_secdebug==-1 ))THEN477 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 )THEN 478 478 WRITE(numout,*)" List of points after removepoints:" 479 479 iptloc = secs(jsec)%nb_point … … 487 487 488 488 ELSE ! iptglo = 0 489 IF( lwp .AND. ( jsec==nn_secdebug .OR. nn_secdebug==-1 ))&489 IF( jsec==nn_secdebug .OR. nn_secdebug==-1 )& 490 490 WRITE(numout,*)' No points for this section.' 491 491 ENDIF … … 695 695 ! LOOP ON THE LEVEL | 696 696 !---------------------------| 697 DO jk = 1, mb athy(k%I,k%J) !Sum of the transport on the vertical697 DO jk = 1, mbkt(k%I,k%J) !Sum of the transport on the vertical 698 698 ! ! compute temperature, salinity, insitu & potential density, ssh and depth at U/V point 699 699 SELECT CASE( sec%direction(jseg) ) … … 874 874 !---------------------------| 875 875 !Sum of the transport on the vertical 876 DO jk=1,mb athy(k%I,k%J)876 DO jk=1,mbkt(k%I,k%J) 877 877 878 878 ! compute temperature, salinity, insitu & potential density, ssh and depth at U/V point -
trunk/NEMOGCM/TOOLS/SECTIONS_DIADCT/src/compute_sections.f90
r3632 r8126 681 681 IF( sec%nb_point .ne. 0 )THEN 682 682 IF ( sec%listPoint(sec%nb_point)%I .NE. sec%listPoint(1)%I ) THEN 683 sec%slopeSection = ( sec%listPoint(sec%nb_point)%J - sec%listPoint(1)%J )/ &684 ( sec%listPoint(sec%nb_point)%I - sec%listPoint(1)%I )683 sec%slopeSection = REAL( ( sec%listPoint(sec%nb_point)%J - sec%listPoint(1)%J ) , wp )/ & 684 REAL( ( sec%listPoint(sec%nb_point)%I - sec%listPoint(1)%I ) , wp ) 685 685 ELSE 686 686 sec%slopeSection = 10000._wp
Note: See TracChangeset
for help on using the changeset viewer.