Commit d3f2e526 authored by Claudio Gheller's avatar Claudio Gheller
Browse files

external global veriables problem fixed

parent d17c04c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ CFLAGS = -std=c99 -fopenmp $(OPTIMIZE) $(GSL_INCL)

$(EXEC)	: $(OBJS)
	$(CC) $(CFLAGS)  $(OBJS)  $(LIBS) -o $(EXEC)
	ctags -R src/*.[ch]
	#ctags -R src/*.[ch]

$(OBJS)	: $(INCL)

src/.timing.h.swp

deleted100644 → 0
−12 KiB

File deleted.

+2 −0
Original line number Diff line number Diff line
#include "common.h"

struct cosmology Cosmo;
double (*t2a)(double);
double (*a2t)(double);

void set_cosmology(int cosmology)
{
+4 −4
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ void set_cosmology(int);

double NoComov(float);

struct cosmology {	
extern struct cosmology {	
	char name[10];		    /* Identifier */
	float h;		        /* hubble parameter */
	float Omega_b;		    /* baryon overdensity */
@@ -16,8 +16,8 @@ struct cosmology {
}Cosmo, WMAP3,null,deSitter;	

/* Time conversions */
double (*a2t)(double); 
double (*t2a)(double);
extern double (*a2t)(double); 
extern double (*t2a)(double);

double a2t_deSitter(double);
double t2a_deSitter(double);
+2 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@
#define FLOAT sizeof(float)
#define DBL sizeof(double)

struct units Comv2phys;

#ifdef I_GADGET2

int4bytes blksize, swap = 0;
Loading