IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41632


Ignore:
Timestamp:
Jun 2, 2021, 4:06:47 PM (5 years ago)
Author:
eugene
Message:

use grid for PS1; do not use ohana alloc for Shutdown

Location:
branches/eam_branches/relphot.20210521/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/src/GridOps.c

    r41625 r41632  
    1919static int                 NGridCorr = 0;
    2020
    21 // PS1: # define NX_CHIP 4900
    22 // PS1: # define NY_CHIP 4900
    23 // PS1: # define NX_BIN 16
    24 // PS1: # define NY_BIN 16
    25 
     21# if (1)
     22/* PS1 / PS2 values */
     23# define NX_CHIP 4900
     24# define NY_CHIP 4900
     25# define NX_BIN 16
     26# define NY_BIN 16
     27# else
     28/* test values */
    2629# define NX_CHIP 1000
    2730# define NY_CHIP 1000
    2831# define NX_BIN 2
    2932# define NY_BIN 2
     33# endif
    3034
    3135void initGridBins (void) {
  • branches/eam_branches/relphot.20210521/src/Shutdown.c

    r38986 r41632  
    1010int Shutdown (char *format, ...) { 
    1111  va_list argp;
    12   char *formatplus;
     12  char formatplus[1024];
    1313 
    14   ALLOCATE (formatplus, char, strlen(format));
    15   strcpy (formatplus, format);
    16   strcat (formatplus, "\n");
     14  // we cannot allocate this with the ohana allocation tools
     15  // because it could deadlock
     16  snprintf (formatplus, 1024, "%s\n", format);
    1717
    1818  va_start (argp, format);
    1919  vfprintf (stderr, formatplus, argp);
    20   free (formatplus);
    2120  va_end (argp);
    2221
Note: See TracChangeset for help on using the changeset viewer.