ewReset.cpp 393 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include <stdio.h>
#include <utilits.h>
#include "easywave.h"


int ewReset()
{
  int i,j,m;

  CNode& Node = *gNode;

  for( i=1; i<=NLon; i++ ) {
    for( j=1; j<=NLat; j++ ) {

      m = idx(j,i);
      Node(m, iH) = Node(m, iHmax) = Node(m, iM) = Node(m, iN) = 0;
      Node(m, iTime) = -1;
    }
  }

  Imin = 1; Imax = NLon; Jmin = 1; Jmax = NLat;

  return 0;
}