Ignore:
Timestamp:
05/11/06 12:35:53 (18 years ago)
Author:
smasson
Message:

debug + new xxx

Location:
trunk/ToBeReviewed/GRILLE
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ToBeReviewed/GRILLE/.idlwave_catalog

    r68 r69  
    22;; IDLWAVE catalog for library saxo 
    33;; Automatically Generated -- do not edit. 
    4 ;; Created by idlwave_catalog on Tue Jan 24 17:06:19 2006 
     4;; Created by idlwave_catalog on Thu May  4 08:42:55 2006 
    55;; 
    66(setq idlwave-library-catalog-libname "saxo") 
     
    1818   ("umask" fun nil (lib "umask.pro" nil "saxo") "Result = %s" (nil)) 
    1919   ("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  
    11function changegrid, newgrid 
    22; 
    3 @common 
     3@cm_4mesh 
    44; 
    55; 
     
    99; 
    1010   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 
    1712   ixminmesh = newgrid.ixminmesh 
    1813   ixmaxmesh = newgrid.ixmaxmesh 
     
    2116   izminmesh = newgrid.izminmesh 
    2217   izmaxmesh = newgrid.izmaxmesh 
    23    key_shift = newgrid.key_shift 
    24    boundary = newgrid.boundary 
    2518; 
    2619; read the new file 
    2720; 
    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 
    4322; 
    4423  IF NOT keyword_set(key_forgetold) THEN BEGIN 
  • trunk/ToBeReviewed/GRILLE/cmpgrid.pro

    r13 r69  
    1212   if n_elements(ccmeshparameters) EQ 0 then return, 1 
    1313; 
     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; 
    1418; we compare the structure which caracterise the grid whith 
    1519; ccmeshparameters 
    1620; 
    17 ; 
    1821   case 1 of 
    19       ccmeshparameters.filename NE newgrid.filename: 
    20       ccmeshparameters.filetype NE newgrid.filetype: 
    2122      ccmeshparameters.jpiglo NE newgrid.jpiglo: 
    2223      ccmeshparameters.jpjglo NE newgrid.jpjglo: 
     
    2526      ccmeshparameters.jpj NE newgrid.jpj: 
    2627      ccmeshparameters.jpk NE newgrid.jpk: 
     28      array_equal(ccmeshparameters.glaminfo, newgrid.glaminfo) EQ 0: 
     29      array_equal(ccmeshparameters.gphiinfo, newgrid.gphiinfo) EQ 0: 
    2730      ccmeshparameters.ixminmesh NE newgrid.ixminmesh: 
    2831      ccmeshparameters.ixmaxmesh NE newgrid.ixmaxmesh: 
     
    3235      ccmeshparameters.izmaxmesh NE newgrid.izmaxmesh: 
    3336      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: 
    3444      ELSE:return, 0 
    3545   endcase 
  • trunk/ToBeReviewed/GRILLE/grille.pro

    r13 r69  
    107107      lasty = lastyt 
    108108;vecteurs 2d 
    109       IF n_elements(glam) NE 1 THEN glam = glamt[firstx:lastx, firsty:lasty] 
    110       IF n_elements(gphi) NE 1 THEN gphi = gphit[firstx:lastx, firsty:lasty] 
    111       IF n_elements(e1) NE 1 THEN e1 = e1t[firstx:lastx, firsty:lasty] 
    112       IF n_elements(e2) NE 1 THEN 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] 
    113113;vecteurs 3d 
    114114      IF keyword_set(forplt) THEN mask = tmask[firstx:lastx, firsty:lasty, firstz] $ 
    115       ELSE IF n_elements(mask) NE 1 THEN mask = tmask[firstx:lastx, firsty:lasty, firstz:lastz] 
     115      ELSE IF arg_present(mask) THEN mask = tmask[firstx:lastx, firsty:lasty, firstz:lastz] 
    116116    end 
    117117;------------------------------------------------------------ 
     
    127127      lasty = lastyu 
    128128;vecteurs 2d 
    129       IF n_elements(glam) NE 1 THEN glam = glamu[firstx:lastx, firsty:lasty] 
    130       IF n_elements(gphi) NE 1 THEN 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] 
    131131      if keyword_set(forplt) then BEGIN 
    132132        mask = 1b-tmask[firstx:lastx, firsty:lasty, firstz] 
     
    158158        endif 
    159159      ENDIF 
    160       IF n_elements(e1) NE 1 THEN e1  = e1u[firstx:lastx, firsty:lasty] 
    161       IF n_elements(e2) NE 1 THEN 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] 
    162162;vecteurs 3d 
    163163      IF keyword_set(forplt) THEN mask = (umask())[firstx:lastx, firsty:lasty, firstz] $ 
    164       ELSE IF n_elements(mask) NE 1 THEN mask = (umask())[firstx:lastx, firsty:lasty, firstz:lastz] 
     164      ELSE IF arg_present(mask) THEN mask = (umask())[firstx:lastx, firsty:lasty, firstz:lastz] 
    165165    end 
    166166;------------------------------------------------------------ 
     
    177177      lasty = lastyv 
    178178;vecteurs 2d 
    179       IF n_elements(glam) NE 1 THEN glam = glamv[firstx:lastx, firsty:lasty] 
    180       IF n_elements(gphi) NE 1 THEN 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] 
    181181      if keyword_set(forplt) then BEGIN  
    182182        mask = 1b-tmask[firstx:lastx, firsty:lasty, firstz] 
     
    208208        endif 
    209209      ENDIF 
    210       IF n_elements(e1) NE 1 THEN e1  = e1v[firstx:lastx, firsty:lasty] 
    211       IF n_elements(e2) NE 1 THEN 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] 
    212212;vecteurs 3d 
    213213      IF keyword_set(forplt) THEN mask = (vmask())[firstx:lastx, firsty:lasty, firstz] $ 
    214       ELSE IF n_elements(mask) NE 1 THEN mask = (vmask())[firstx:lastx, firsty:lasty, firstz:lastz] 
     214      ELSE IF arg_present(mask) THEN mask = (vmask())[firstx:lastx, firsty:lasty, firstz:lastz] 
    215215    end 
    216216;------------------------------------------------------------ 
     
    227227      lasty = lastyf 
    228228;vecteurs 2d 
    229       IF n_elements(glam) NE 1 THEN glam = glamf[firstx:lastx, firsty:lasty] 
    230       IF n_elements(gphi) NE 1 THEN 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] 
    231231      if keyword_set(forplt) then BEGIN  
    232232        mask = 1b-tmask[firstx:lastx, firsty:lasty, firstz] 
     
    268268        endif 
    269269      ENDIF 
    270       IF n_elements(e1) NE 1 THEN e1  = e1f[firstx:lastx, firsty:lasty] 
    271       IF n_elements(e2) NE 1 THEN 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] 
    272272;vecteurs 3d 
    273273      IF keyword_set(forplt) THEN mask = (fmask())[firstx:lastx, firsty:lasty, firstz] $ 
    274       ELSE IF n_elements(mask) NE 1 THEN mask = (fmask())[firstx:lastx, firsty:lasty, firstz:lastz] 
     274      ELSE IF arg_present(mask) THEN mask = (fmask())[firstx:lastx, firsty:lasty, firstz:lastz] 
    275275    END 
    276276;------------------------------------------------------------ 
Note: See TracChangeset for help on using the changeset viewer.