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

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

improvements/corrections of some *.pro headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 700 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;-
26;
27FUNCTION changegrid, newgrid
28;
29  compile_opt idl2, strictarrsubs
30;
31@cm_4mesh
32;
33;
34   if cmpgrid(newgrid) EQ 0 then return, 0
35;
36; update the common paramaters
37;
38   ccmeshparameters = newgrid
39
40   ixminmesh = newgrid.ixminmesh
41   ixmaxmesh = newgrid.ixmaxmesh
42   iyminmesh = newgrid.iyminmesh
43   iymaxmesh = newgrid.iymaxmesh
44   izminmesh = newgrid.izminmesh
45   izmaxmesh = newgrid.izmaxmesh
46;
47; read the new file
48;
49   loadgrid, newgrid.filename
50;
51  IF NOT keyword_set(key_forgetold) THEN BEGIN
52   @updateold
53  ENDIF
54;
55   return, 1
56end
Note: See TracBrowser for help on using the repository browser.