Changeset 2356 in lmdz_wrf
- Timestamp:
- Feb 20, 2019, 2:46:48 PM (6 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Makefile.trueno
r2261 r2356 54 54 intsrcs = $(srcs) module_ForInterpolate.f90 55 55 scisrcs = $(srcs) 56 gensrcs = module_definitions.f90 module_basic.f90 module_generic.f90 56 57 defsrcs = module_definitions.f90 57 58 … … 92 93 pyintmods.o \ 93 94 pyscimods.o \ 95 pygenmods.o \ 94 96 pydefmods.o \ 95 97 trajectories_overlap.o … … 101 103 pyintmods.o \ 102 104 pyscimods.o \ 105 pygenmods.o \ 103 106 pydefmods.o 104 107 … … 116 119 117 120 clean : 118 $(RM) *.mod *.o interpolate module_ForDiag.so module_ForInt.so module_ForDistriCorrect.so module_ForSci.so module_For Def.so121 $(RM) *.mod *.o interpolate module_ForDiag.so module_ForInt.so module_ForDistriCorrect.so module_ForSci.so module_ForGen.so module_ForDef.so 119 122 120 123 ######## ####### … … 170 173 $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForSci $(scisrcs) -L$(NCLIBFOLD) 171 174 175 pygenmods.o: 176 $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForGen $(gensrcs) -L$(NCLIBFOLD) 177 172 178 pydefmods.o: 173 179 $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForDef $(defsrcs) -L$(NCLIBFOLD) -
trunk/tools/module_generic.f90
r2340 r2356 5 5 ! continguos_homogene_zones: Subroutine to look for contiguous zones by looking by continuous grid points 6 6 ! freeunit: provides the number of a free unit in which open a file 7 ! from_ptlist_2DRKmatrix: Subroutine to construct a 2D RK matrix from a list of values accompaigned 8 ! by a list of coordinates 7 9 ! GetInNamelist: Subroutine to get a paramter from a namelistfile 8 10 ! get_xyconlimits: Subroutine for getting the limits of contiguous values from a given point in a 2D matrix … … 985 987 END SUBROUTINE get_xyconlimits 986 988 989 SUBROUTINE from_ptlist_2DRKmatrix(Npts, pts, vals, dx, dy, NOval, matrix) 990 ! Subroutine to construct a 2D RK matrix from a list of values accompaigned by a list of coordinates 991 992 IMPLICIT NONE 993 994 INTEGER, INTENT(in) :: Npts, dx, dy 995 REAL(r_k), INTENT(in) :: NOval 996 INTEGER, DIMENSION(Npts,2), INTENT(in) :: pts 997 REAL(r_k), DIMENSION(Npts), INTENT(in) :: vals 998 REAL(r_k), DIMENSION(dx,dy), INTENT(out) :: matrix 999 1000 ! Local 1001 INTEGER :: iv, i, j 1002 1003 !!!!!!! Variables 1004 ! Npts: Number of values of the list 1005 ! pts: 2D matrix coordinates of the values 1006 ! vals: list of values correspondant to the coordinates 1007 ! dx, dy: shape of the 2D matrix 1008 ! NOval: Value to assign when there is no coordinate 1009 ! matrix: resultant matrix 1010 1011 fname = 'from_ptlist_2DRKmatrix' 1012 1013 matrix = NOval 1014 1015 DO iv=1, Npts 1016 i = pts(iv,1) 1017 j = pts(iv,2) 1018 matrix(i,j) = vals(iv) 1019 END DO 1020 1021 RETURN 1022 1023 END SUBROUTINE from_ptlist_2DRKmatrix 1024 987 1025 END MODULE module_generic
Note: See TracChangeset
for help on using the changeset viewer.