Skip to content

Commit

Permalink
more fortran flags, plus fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 23, 2019
1 parent b1cbbba commit 8dd4fdc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 12 additions & 0 deletions set_flags.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This is part of the PIO package.
#
# Assemble the CPPFLAGS and for PIO Fortran tests.
#

# Set the CPPFLAGS.
AM_CPPFLAGS = -I$(top_srcdir)/src/flib
AM_CPPFLAGS += "-D_NETCDF -D_NETCDF4 -D_PETCDF"

# Link to our assembled libraries, C and Fortran.
AM_LDFLAGS = ${top_builddir}/src/clib/libpio.la
LDADD = ${top_builddir}/src/clib/libpiof.la
5 changes: 2 additions & 3 deletions tests/cunit/test_perf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,8 @@ int test_darray(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank
startt = (1000000 * starttime.tv_sec) + starttime.tv_usec;
endt = (1000000 * endtime.tv_sec) + endtime.tv_usec;
delta = (endt - startt)/NUM_TIMESTEPS;
/* if (!my_rank) */
/* printf("%d\t%d\t%d\t%d\t%lld\n", rearranger, fmt, pio_type, test_multi, */
/* delta); */
if (!my_rank)
printf("%d\t%lld\n", fmt, delta);

/* Reopen the file. */
if ((ret = PIOc_openfile(iosysid, &ncid2, &flavor[fmt], filename, PIO_NOWRITE)))
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@

# Ed Hartnett 3/20/19

# Link to our assembled library.
AM_LDFLAGS = ${top_builddir}/src/clib/libpio.la
AM_CPPFLAGS = -I$(top_srcdir)/src/flib
AM_CPPFLAGS += "-D_NETCDF -D_NETCDF4 -D_PETCDF"
LDADD = ${top_builddir}/src/clib/libpiof.la
# Put together AM_CPPFLAGS and AM_LDFLAGS.
include $(top_srcdir)/set_flags.am

# Build the test for make check.
check_PROGRAMS = pio_unit_test_driver
Expand Down

0 comments on commit 8dd4fdc

Please sign in to comment.