Changeset 454 for trunk/SRC


Ignore:
Timestamp:
04/07/11 10:03:36 (13 years ago)
Author:
smasson
Message:

bugfix to keep double precision of vertical scale factors in all cases

Location:
trunk/SRC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Computation/e3t_3d.pro

    r450 r454  
    4444    keyword_set(e1) AND keyword_set(e2):arr2d = e1t[fstx:lstx, fsty:lsty] * e2t[fstx:lstx, fsty:lsty] 
    4545    keyword_set(e1)                    :arr2d = e1t[fstx:lstx, fsty:lsty] 
    46     keyword_set(e2):arr2d =                             e2t[fstx:lstx, fsty:lsty] 
    47     ELSE:arr2d = replicate(1., nx*ny) 
     46                        keyword_set(e2):arr2d =                             e2t[fstx:lstx, fsty:lsty] 
     47    ELSE:arr2d = replicate(1.d, nx*ny) 
    4848  ENDCASE 
    4949  e3t3d = arr2d[*] # e3t[firstzt:lastzt] 
  • trunk/SRC/Computation/e3u_3d.pro

    r445 r454  
    7070  ENDCASE 
    7171; 
    72   IF n_elements(arr2d) NE 0 THEN e3u3d = temporary(e3u3d) * ( arr2d[*] # replicate(1., nzt) ) 
     72  IF n_elements(arr2d) NE 0 THEN e3u3d = temporary(e3u3d) * ( arr2d[*] # replicate(1.d, nzt) ) 
    7373; 
    7474  return, e3u3d 
  • trunk/SRC/Computation/e3v_3d.pro

    r445 r454  
    5959  ENDCASE 
    6060; 
    61   IF n_elements(arr2d) NE 0 THEN e3v3d = temporary(e3v3d) * ( arr2d[*] # replicate(1., nzt) ) 
     61  IF n_elements(arr2d) NE 0 THEN e3v3d = temporary(e3v3d) * ( arr2d[*] # replicate(1.d, nzt) ) 
    6262; 
    6363  return, e3v3d 
  • trunk/SRC/Computation/e3w_3d.pro

    r450 r454  
    3939    keyword_set(e1):arr2d = e1t[firstxt:lastxt, firstyt:lastyt] 
    4040    keyword_set(e2):arr2d = e2t[firstxt:lastxt, firstyt:lastyt] 
    41     ELSE:arr2d = replicate(1., nxt*nyt) 
     41    ELSE:arr2d = replicate(1.d, nxt*nyt) 
    4242  ENDCASE 
    4343  e3w_3d = arr2d[*] # e3w[firstzw:lastzw] 
  • trunk/SRC/Grid/ncdf_meshread.pro

    r453 r454  
    553553    ENDCASE 
    554554    nothing = execute(command) 
    555     command = namevar[i]+'=float('+namevar[i]+')' 
    556     nothing = execute(command) 
     555    IF strmid(fnamevar[i], 0, 2) NE  'e3' THEN BEGIN 
     556      command = namevar[i]+'=float('+namevar[i]+')'     
     557      nothing = execute(command) 
     558    ENDIF 
    557559    command = 'if size('+namevar[i]+', /n_dimension) gt 0 then '+namevar[i]+' = reform('+namevar[i]+', /over)' 
    558560    nothing = execute(command) 
Note: See TracChangeset for help on using the changeset viewer.