Changeset 1499 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Nov 19, 2015, 4:04:48 PM (10 years ago)
Author:
emillour
Message:

Mars GCM:

  • Added option "-cpp" so that users can add the definition of specific precompiling flags in makegcm_* scripts (and added default BLAS and LAPACK flags for ifort on Gnome and Ada).
  • Put calls to dgesv (Lapack) routine in photochemistry_asis.F90 under the LAPACK preprocessing flag. Moved secondary routines in photochemistry.F and photochemistry_asis.F90 into the main (via contains instruction) to avoid multiple definitions of routines with identical names.

EM

Location:
trunk/LMDZ.MARS/libf/aeronomars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/photochemistry.F

    r1430 r1499  
    167167      call chimtogcm(nlayer, nq, zycol, lswitch, nesp, rm)
    168168
    169       return
    170       end
     169      contains
     170
    171171
    172172c*****************************************************************
     
    755755      end do
    756756
    757       return
    758       end
     757      end subroutine chimie
    759758
    760759c*****************************************************************
     
    857856      end do
    858857
    859       return
    860       end
     858      end subroutine gcmtochim
    861859
    862860c*****************************************************************
     
    943941      end if
    944942
    945       return
    946       end
     943      end subroutine chimtogcm
    947944
    948945c*****************************************************************
     
    15641561      end if
    15651562c
    1566       return
    1567       end
     1563      end subroutine chemrates
     1564
     1565      end subroutine photochemistry
  • trunk/LMDZ.MARS/libf/aeronomars/photochemistry_asis.F90

    r1496 r1499  
    221221   cnew(:) = c(ilev,:)
    222222
     223#ifdef LAPACK
    223224   call dgesv(nesp,1,mat,nesp,indx,cnew,nesp,code)
    224 
     225#else
     226   write(*,*) "photochemistry_asis error, missing LAPACK routine dgesv"
     227   stop
     228#endif
    225229!  eliminate small values
    226230
     
    287291      cnew(:) = c(ilev,:)
    288292
     293#ifdef LAPACK
    289294      call dgesv(nesp,1,mat,nesp,indx,cnew,nesp,code)
    290 
     295#else
     296   write(*,*) "photochemistry_asis error, missing LAPACK routine dgesv"
     297   stop
     298#endif
    291299   end if
    292300
     
    351359               i_n, i_n2d, i_no, i_no2, i_n2, dens, c)
    352360
    353 return
    354 end
     361contains
    355362
    356363!======================================================================
     
    958965      v_phot(:,nb_phot) = h005(:)
    959966
    960 return
    961 end
     967end subroutine reactionrates
    962968
    963969!======================================================================
     
    10751081end do
    10761082
    1077 return
    1078 end
     1083end subroutine fill_matrix
    10791084
    10801085!================================================================
     
    15801585end if 
    15811586
    1582 return
    1583 end
     1587end subroutine indice
    15841588
    15851589!*****************************************************************
     
    17481752      end do
    17491753
    1750       return
    1751       end
     1754      end subroutine gcmtochim
    17521755
    17531756!*****************************************************************
     
    18201823      end do
    18211824
    1822       return
    1823       end
     1825      end subroutine chimtogcm
     1826
     1827end subroutine photochemistry_asis
     1828
Note: See TracChangeset for help on using the changeset viewer.