source: trunk/SRC/ToBeReviewed/GRILLE/changegrid.pro @ 114

Last change on this file since 114 was 114, checked in by smasson, 18 years ago

new compilation options (compile_opt idl2, strictarrsubs) in each routine

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 534 bytes
Line 
1function changegrid, newgrid
2;
3;
4  compile_opt idl2, strictarrsubs
5;
6@cm_4mesh
7;
8;
9   if cmpgrid(newgrid) EQ 0 then return, 0
10;
11; update the common paramaters
12;
13   ccmeshparameters = newgrid
14
15   ixminmesh = newgrid.ixminmesh
16   ixmaxmesh = newgrid.ixmaxmesh
17   iyminmesh = newgrid.iyminmesh
18   iymaxmesh = newgrid.iymaxmesh
19   izminmesh = newgrid.izminmesh
20   izmaxmesh = newgrid.izmaxmesh
21;
22; read the new file
23;
24   loadgrid, newgrid.filename
25;
26  IF NOT keyword_set(key_forgetold) THEN BEGIN
27   @updateold
28  ENDIF
29;
30   return, 1
31end
Note: See TracBrowser for help on using the repository browser.