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

Last change on this file since 134 was 134, checked in by navarro, 18 years ago

change *.pro file properties (del eof-style, del executable, set keywords Id

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
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.