Ticket #555 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

gmew fix for max number of stations in staLoc file greater than 1800

Reported by: quintiliani Owned by: somebody
Priority: critical Milestone: All Platforms
Component: gmew Version:
Keywords: Cc:

Description

Recently our staLoc file has reached 1863 stations and we experienced gmew crash at start, even though the value of parameter maxSta is 3000, identical to localmag.

Default limit defined in lm_site.c is 1800 and gmew is not able to change it by maxSta.

static int maxSite  = 1800;  /* default size;                     *
                             ** Use <maxsite> command to increase
                             **
                             ** 20020516 dbh - previous statement
                             **                invalid.  lm_config.c
                             **                never calls site_com(),
                             **                thus never sets maxSite.
                             **                Added function set_maxsite()
                             **                which allows lm_config.c
                             **                to set maxsite when
                             **                it obtains the
                             **                appropriate value.
                             */

localmag overrides maxSite value by set_maxsite(), but gmew not.

      /* MaxSta: required */
      else if (k_its("maxSta") )
      {
        plmParams->maxSta = k_int();
        /* tell lm_site.c about max size */
        set_maxsite( plmParams->maxSta );
        init[1] = 1;
      }

The following change fix the problem for us

Index: gm_config.c
===================================================================
--- gm_config.c	(revision 6865)
+++ gm_config.c	(working copy)
@@ -435,6 +435,8 @@
       else if (k_its("maxSta") )
       {
         pgmParams->maxSta = k_int();
+        /* tell lm_site.c about max size */
+        set_maxsite( pgmParams->maxSta );
         init[1] = 1;
       }

Change History

comment:1 Changed 3 years ago by quintiliani

Fix in r6866

comment:2 Changed 3 years ago by quintiliani

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.