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

Last change on this file since 325 was 325, checked in by pinsard, 17 years ago

modification of some headers (+some corrections) to prepare usage of the new idldoc

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 698 bytes
Line 
1;+
2;
3; @file_comments
4;
5; @categories
6;
7; @param NEWGRID
8;
9; @returns
10;
11; @uses
12;
13; @restrictions
14;
15; @examples
16;
17; @history
18;
19; @version
20; $Id$
21;
22; @todo
23; seb
24;
25;-
26FUNCTION changegrid, newgrid
27;
28  compile_opt idl2, strictarrsubs
29;
30@cm_4mesh
31;
32;
33   if cmpgrid(newgrid) EQ 0 then return, 0
34;
35; update the common paramaters
36;
37   ccmeshparameters = newgrid
38
39   ixminmesh = newgrid.ixminmesh
40   ixmaxmesh = newgrid.ixmaxmesh
41   iyminmesh = newgrid.iyminmesh
42   iymaxmesh = newgrid.iymaxmesh
43   izminmesh = newgrid.izminmesh
44   izmaxmesh = newgrid.izmaxmesh
45;
46; read the new file
47;
48   loadgrid, newgrid.filename
49;
50  IF NOT keyword_set(key_forgetold) THEN BEGIN
51   @updateold
52  ENDIF
53;
54   return, 1
55end
Note: See TracBrowser for help on using the repository browser.