Changeset 69 for trunk/ToBeReviewed/GRILLE
- Timestamp:
- 05/11/06 12:35:53 (18 years ago)
- Location:
- trunk/ToBeReviewed/GRILLE
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ToBeReviewed/GRILLE/.idlwave_catalog
r68 r69 2 2 ;; IDLWAVE catalog for library saxo 3 3 ;; Automatically Generated -- do not edit. 4 ;; Created by idlwave_catalog on T ue Jan 24 17:06:1920064 ;; Created by idlwave_catalog on Thu May 4 08:42:55 2006 5 5 ;; 6 6 (setq idlwave-library-catalog-libname "saxo") … … 18 18 ("umask" fun nil (lib "umask.pro" nil "saxo") "Result = %s" (nil)) 19 19 ("v2t" fun nil (lib "v2t.pro" nil "saxo") "Result = %s(temp)" (nil)) 20 ("vmask" fun nil (lib "vmask.pro" nil "saxo") "Result = %s" (nil)) 21 ("readmesh" pro nil (lib "whichgrid.pro" nil "saxo") "%s, filename, filetype" (nil ("_extra"))) 22 ("getgridparameter" fun nil (lib "whichgrid.pro" nil "saxo") "Result = %s(top)" (nil)) 23 ("showgridparameter" pro nil (lib "whichgrid.pro" nil "saxo") "%s, basetop" (nil ("_EXTRA") ("EDITABLE"))) 24 ("give_file_type_choice" fun nil (lib "whichgrid.pro" nil "saxo") "Result = %s" (nil ("type"))) 25 ("whichgrid_event" pro nil (lib "whichgrid.pro" nil "saxo") "%s, event" (nil)) 26 ("whichgrid" fun nil (lib "whichgrid.pro" nil "saxo") "Result = %s(name)" (nil ("_EXTRA") ("PARENT"))))) 20 ("vmask" fun nil (lib "vmask.pro" nil "saxo") "Result = %s" (nil)))) -
trunk/ToBeReviewed/GRILLE/changegrid.pro
r13 r69 1 1 function changegrid, newgrid 2 2 ; 3 @c ommon3 @cm_4mesh 4 4 ; 5 5 ; … … 9 9 ; 10 10 ccmeshparameters = newgrid 11 jpiglo = newgrid.jpiglo 12 jpjglo = newgrid.jpjglo 13 jpkglo = newgrid.jpkglo 14 jpi = newgrid.jpi 15 jpj = newgrid.jpj 16 jpk = newgrid.jpk 11 17 12 ixminmesh = newgrid.ixminmesh 18 13 ixmaxmesh = newgrid.ixmaxmesh … … 21 16 izminmesh = newgrid.izminmesh 22 17 izmaxmesh = newgrid.izmaxmesh 23 key_shift = newgrid.key_shift24 boundary = newgrid.boundary25 18 ; 26 19 ; read the new file 27 20 ; 28 if newgrid.filetype EQ 'batch file' THEN BEGIN 29 createpro, '@'+strmid(newgrid.filename[0], 0, strlen(newgrid.filename)-4) $ 30 , filename = myuniquetmpdir +'for_createpro.pro' 31 return, 1 32 ENDIF ELSE BEGIN 33 readmesh, newgrid.filename, newgrid.filetype, glamboundary = boundary 34 ENDELSE 35 ; 36 ; 37 key_periodic = newgrid.key_periodic 38 ; 39 @updateold 40 domdef 41 if newgrid.triangulation EQ 1 then triangles_list = triangule() $ 42 ELSE triangles_list = -1 21 loadgrid, newgrid.filename 43 22 ; 44 23 IF NOT keyword_set(key_forgetold) THEN BEGIN -
trunk/ToBeReviewed/GRILLE/cmpgrid.pro
r13 r69 12 12 if n_elements(ccmeshparameters) EQ 0 then return, 1 13 13 ; 14 ; does ccmeshparameters contains the new parameters ? 15 ; 16 if (where(strlowcase(tag_names(ccmeshparameters)) EQ 'key_partialstep'))[0] EQ -1 then return, 1 17 ; 14 18 ; we compare the structure which caracterise the grid whith 15 19 ; ccmeshparameters 16 20 ; 17 ;18 21 case 1 of 19 ccmeshparameters.filename NE newgrid.filename:20 ccmeshparameters.filetype NE newgrid.filetype:21 22 ccmeshparameters.jpiglo NE newgrid.jpiglo: 22 23 ccmeshparameters.jpjglo NE newgrid.jpjglo: … … 25 26 ccmeshparameters.jpj NE newgrid.jpj: 26 27 ccmeshparameters.jpk NE newgrid.jpk: 28 array_equal(ccmeshparameters.glaminfo, newgrid.glaminfo) EQ 0: 29 array_equal(ccmeshparameters.gphiinfo, newgrid.gphiinfo) EQ 0: 27 30 ccmeshparameters.ixminmesh NE newgrid.ixminmesh: 28 31 ccmeshparameters.ixmaxmesh NE newgrid.ixmaxmesh: … … 32 35 ccmeshparameters.izmaxmesh NE newgrid.izmaxmesh: 33 36 ccmeshparameters.key_shift NE newgrid.key_shift: 37 ccmeshparameters.key_periodic NE newgrid.key_periodic: 38 array_equal(ccmeshparameters.key_stride, newgrid.key_stride) EQ 0: 39 ccmeshparameters.key_gridtype NE newgrid.key_gridtype: 40 ccmeshparameters.key_yreverse NE newgrid.key_yreverse: 41 ccmeshparameters.key_zreverse NE newgrid.key_zreverse: 42 ccmeshparameters.key_partialstep NE newgrid.key_partialstep: 43 ccmeshparameters.key_onearth NE newgrid.key_onearth: 34 44 ELSE:return, 0 35 45 endcase -
trunk/ToBeReviewed/GRILLE/grille.pro
r13 r69 107 107 lasty = lastyt 108 108 ;vecteurs 2d 109 IF n_elements(glam) NE 1THEN glam = glamt[firstx:lastx, firsty:lasty]110 IF n_elements(gphi) NE 1THEN gphi = gphit[firstx:lastx, firsty:lasty]111 IF n_elements(e1) NE 1THEN e1 = e1t[firstx:lastx, firsty:lasty]112 IF n_elements(e2) NE 1THEN e2 = e2t[firstx:lastx, firsty:lasty]109 IF arg_present(glam) THEN glam = glamt[firstx:lastx, firsty:lasty] 110 IF arg_present(gphi) THEN gphi = gphit[firstx:lastx, firsty:lasty] 111 IF arg_present(e1) THEN e1 = e1t[firstx:lastx, firsty:lasty] 112 IF arg_present(e2) THEN e2 = e2t[firstx:lastx, firsty:lasty] 113 113 ;vecteurs 3d 114 114 IF keyword_set(forplt) THEN mask = tmask[firstx:lastx, firsty:lasty, firstz] $ 115 ELSE IF n_elements(mask) NE 1THEN mask = tmask[firstx:lastx, firsty:lasty, firstz:lastz]115 ELSE IF arg_present(mask) THEN mask = tmask[firstx:lastx, firsty:lasty, firstz:lastz] 116 116 end 117 117 ;------------------------------------------------------------ … … 127 127 lasty = lastyu 128 128 ;vecteurs 2d 129 IF n_elements(glam) NE 1THEN glam = glamu[firstx:lastx, firsty:lasty]130 IF n_elements(gphi) NE 1THEN gphi = gphiu[firstx:lastx, firsty:lasty]129 IF arg_present(glam) THEN glam = glamu[firstx:lastx, firsty:lasty] 130 IF arg_present(gphi) THEN gphi = gphiu[firstx:lastx, firsty:lasty] 131 131 if keyword_set(forplt) then BEGIN 132 132 mask = 1b-tmask[firstx:lastx, firsty:lasty, firstz] … … 158 158 endif 159 159 ENDIF 160 IF n_elements(e1) NE 1THEN e1 = e1u[firstx:lastx, firsty:lasty]161 IF n_elements(e2) NE 1THEN e2 = e2u[firstx:lastx, firsty:lasty]160 IF arg_present(e1) THEN e1 = e1u[firstx:lastx, firsty:lasty] 161 IF arg_present(e2) THEN e2 = e2u[firstx:lastx, firsty:lasty] 162 162 ;vecteurs 3d 163 163 IF keyword_set(forplt) THEN mask = (umask())[firstx:lastx, firsty:lasty, firstz] $ 164 ELSE IF n_elements(mask) NE 1THEN mask = (umask())[firstx:lastx, firsty:lasty, firstz:lastz]164 ELSE IF arg_present(mask) THEN mask = (umask())[firstx:lastx, firsty:lasty, firstz:lastz] 165 165 end 166 166 ;------------------------------------------------------------ … … 177 177 lasty = lastyv 178 178 ;vecteurs 2d 179 IF n_elements(glam) NE 1THEN glam = glamv[firstx:lastx, firsty:lasty]180 IF n_elements(gphi) NE 1THEN gphi = gphiv[firstx:lastx, firsty:lasty]179 IF arg_present(glam) THEN glam = glamv[firstx:lastx, firsty:lasty] 180 IF arg_present(gphi) THEN gphi = gphiv[firstx:lastx, firsty:lasty] 181 181 if keyword_set(forplt) then BEGIN 182 182 mask = 1b-tmask[firstx:lastx, firsty:lasty, firstz] … … 208 208 endif 209 209 ENDIF 210 IF n_elements(e1) NE 1THEN e1 = e1v[firstx:lastx, firsty:lasty]211 IF n_elements(e2) NE 1THEN e2 = e2v[firstx:lastx, firsty:lasty]210 IF arg_present(e1) THEN e1 = e1v[firstx:lastx, firsty:lasty] 211 IF arg_present(e2) THEN e2 = e2v[firstx:lastx, firsty:lasty] 212 212 ;vecteurs 3d 213 213 IF keyword_set(forplt) THEN mask = (vmask())[firstx:lastx, firsty:lasty, firstz] $ 214 ELSE IF n_elements(mask) NE 1THEN mask = (vmask())[firstx:lastx, firsty:lasty, firstz:lastz]214 ELSE IF arg_present(mask) THEN mask = (vmask())[firstx:lastx, firsty:lasty, firstz:lastz] 215 215 end 216 216 ;------------------------------------------------------------ … … 227 227 lasty = lastyf 228 228 ;vecteurs 2d 229 IF n_elements(glam) NE 1THEN glam = glamf[firstx:lastx, firsty:lasty]230 IF n_elements(gphi) NE 1THEN gphi = gphif[firstx:lastx, firsty:lasty]229 IF arg_present(glam) THEN glam = glamf[firstx:lastx, firsty:lasty] 230 IF arg_present(gphi) THEN gphi = gphif[firstx:lastx, firsty:lasty] 231 231 if keyword_set(forplt) then BEGIN 232 232 mask = 1b-tmask[firstx:lastx, firsty:lasty, firstz] … … 268 268 endif 269 269 ENDIF 270 IF n_elements(e1) NE 1THEN e1 = e1f[firstx:lastx, firsty:lasty]271 IF n_elements(e2) NE 1THEN e2 = e2f[firstx:lastx, firsty:lasty]270 IF arg_present(e1) THEN e1 = e1f[firstx:lastx, firsty:lasty] 271 IF arg_present(e2) THEN e2 = e2f[firstx:lastx, firsty:lasty] 272 272 ;vecteurs 3d 273 273 IF keyword_set(forplt) THEN mask = (fmask())[firstx:lastx, firsty:lasty, firstz] $ 274 ELSE IF n_elements(mask) NE 1THEN mask = (fmask())[firstx:lastx, firsty:lasty, firstz:lastz]274 ELSE IF arg_present(mask) THEN mask = (fmask())[firstx:lastx, firsty:lasty, firstz:lastz] 275 275 END 276 276 ;------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.