Makefile
author Forrest Hoffman <forrest@climatemodeling.org>
Mon, 01 Oct 2007 15:12:14 -0400
changeset 1 2ce4ee911439
parent 0 3c02cce30be8
child 2 978f4510987d
permissions -rw-r--r--
Fixed h1_summary and h1_summary2 to correctly construct time_bounds values.

h1_summary and h1_summary2 previously used the time_bounds from the last time
value from the last input file when summarizing, suggesting that the field
values were appropriate only over that short time range instead of the complete
time period over which the statistics were calculated. C-LAMP Experiment 1
runs used the previous code, so the time_bounds were incorrect in the
statistical summaries produced. C-LAMP Experiment 2 runs will use this new
code for production of statistical summaries.
     1 CC=gcc
     2 #
     3 # robin1 and phoenix
     4 LIBS=-L$(NETCDF)/lib -lnetcdf -lm
     5 # Penguins
     6 #LIBS=-L/usr/lib64/netcdf-3 -lnetcdf -lm
     7 #
     8 # robin1 and phoenix
     9 CPPFLAGS=-I$(NETCDF)/include
    10 # Penguins
    11 #CPPFLAGS=-I/usr/include/netcdf-3
    12 # phoenix
    13 #CC=cc
    14 #CFLAGS=-O -h list=m $(CPPFLAGS)
    15 # robin1 and Penguins
    16 CFLAGS=-g -Wall -O $(CPPFLAGS)
    17 
    18 all: h1_summary h1_summary2 add_total_fields
    19 
    20 h1_summary: h1_summary.o
    21 	$(CC) $(CFLAGS) -o $@ h1_summary.o $(LIBS)
    22 
    23 h1_summary2: h1_summary2.o
    24 	$(CC) $(CFLAGS) -o $@ h1_summary2.o $(LIBS)
    25 
    26 add_total_fields: add_total_fields.o
    27 	$(CC) $(CFLAGS) -o $@ add_total_fields.o $(LIBS)
    28 
    29 clean:
    30 	$(RM) -f h1_summary.o h1_summary
    31 	$(RM) -f h1_summary2.o h1_summary2
    32 	$(RM) -f add_total_fields.o add_total_fields
    33 
    34 install: all
    35 	cp -p h1_summary $(HOME)/bin/
    36 	cp -p h1_summary2 $(HOME)/bin/
    37 	cp -p add_total_fields $(HOME)/bin/
    38