Custom Query (541 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (31 - 33 of 541)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Ticket Resolution Summary Owner Reporter
#156 fixed MAXTRACELTH is redefined, but never actually used, in nsmp2ew.c somebody baker
Description

gcc warns that MAXTRACELTH is redefined in src/data_exchange/file2ew/nsmp2ew.c:

/usr/bin/gcc -m32 -Dlinux -D__i386 -D_LINUX -D_INTEL -D_USE_SCHED
 -D_USE_PTHREADS -D_USE_TERMIOS -I/home/baker/earthworm/earthworm-7.5/merged/include
   -c -o nsmp2ew.o nsmp2ew.c
nsmp2ew.c:136:1: warning: "MAXTRACELTH" redefined

The original definition comes from #include <k2evt2ew.h>:

/* DK 2003/01/08  MAXTRACELTH changed to 800000 in order to
   support 4000 second (200 s/s) evt file for Urban Hazards
   programs at Golden.  Note that this change increases the
   VM footprint size of the K2InfoStruct to approx 150MB!!!!
 ***********************************************************/
#define 	MAXTRACELTH 		800000

, which is MUCH larger than the redefinition in nsmp2ew.c:

#define MAXTRACELTH 20000

However, nsmp2ew.c does not actually use MAXTRACELTH, nor any of the other definitions at the top of the file (lines 116-139):

#ifdef _INTEL
/*  macro returns byte-swapped version of given 16-bit unsigned integer */
#define BYTESWAP_UINT16(var) \
               ((unsigned short)(((unsigned short)(var)>>(unsigned char)8) + \
               ((unsigned short)(var)<<(unsigned char)8)))

/*  macro returns byte-swapped version of given 32-bit unsigned integer */
#define BYTESWAP_UINT32(var) \
                 ((unsigned long)(((unsigned long)(var)>>(unsigned char)24) + \
        (((unsigned long)(var)>>(unsigned char)8)&(unsigned long)0x0000FF00)+ \
        (((unsigned long)(var)<<(unsigned char)8)&(unsigned long)0x00FF0000)+ \
                                 ((unsigned long)(var)<<(unsigned char)24)))
#endif /*INTEL*/

#ifdef _SPARC
#define BYTESWAP_UINT16(var) (var)
#define BYTESWAP_UINT32(var) (var)
#endif

#define PACKET_MAX_SIZE  3003      /* 2992 + 8 + 3, same as QT */
#define MAXTRACELTH 20000
#define GRAVITY 978.03      /* Gravity in cm/sec/sec */
#define SWAP(a,b) temp=(a);(a)=(b);(b)=temp
#define DECADE   315532800  /* Number of seconds betweeen 1/1/1970 and 1/1/1980 */

They can all be deleted.

A patch is attached to the ticket.

#157 fixed Fixes for hyp71_mgr somebody baker
Description

gcc finds the following in hyp71_mgr.c:

/Users/baker/bin/gcc -m32 -D_MACOSX -D_INTEL -D_GFORTRAN -D_USE_PTHREADS -D_USE_SCHED
 -I/Users/baker/Desktop/Software/Earthworm/earthworm-7.5/merged/include   -c -o 
hyp71_mgr.o hyp71_mgr.c
hyp71_mgr.c: In function ‘main’:
hyp71_mgr.c:332: warning: assignment makes pointer from integer without a cast

The reason is that there is no function prototype for char *hypo71pun_2_hypoarc() in hyp71_mgr.c.

The fix is to move the function prototype definitions from hypo71_hypo2000_conv.c to hyp71_mgr.h:

/* Functions in hypo71_hypo2000_conv.c:
 **************************************/
int  hypoarc_2_hypo71inp( char * , char * , double *, double *);
char *hypo71pun_2_hypoarc( char * , char * , char * );
int search_depth( char * , double *, double *, double *);
int check_depth( char * , double);
void run_hypo71( char * , char * , char * , char * , char * , char *);

There are also duplicate definitions for the "simple" functions at the end of hyp71_mgr.h that can be deleted:

/* Define some simple "functions":
   *******************************/
#ifndef MAX
#define MAX(a,b) (((a)>(b)) ? (a) : (b))        /* Larger value   */
#endif
#ifndef MIN
#define MIN(a,b) (((a)<(b)) ? (a) : (b))        /* Smaller value  */
#endif
#define ABS(a) ((a) > 0 ? (a) : -(a))           /* Absolute value */

Patch files for hyp71_mgr are attached to the ticket.

#158 fixed hyp2000 is missing ${FFLAGS} in LD step somebody baker
Description

src/seismic_processing/hyp2000/makefile.ux is missing ${FFLAGS} in the rule for making the hyp2000 target.

A patch file is attached to the ticket that fixes this and also adds targets to do an ftnchek analysis.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Note: See TracQuery for help on using queries.