Skip to content

Commit c16a076

Browse files
committed
Update tree.
2 parents dc762e2 + 938b7aa commit c16a076

23 files changed

+296
-104
lines changed

ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
* Fri Nov 25 2011 Yann Pouillon <[email protected]> 1.0.4
1+
* Thu Sep 19 2013 Yann Pouillon <[email protected]> and Damien Caliste <[email protected]> 1.0.4
22
- Upgrade configure.ac to correct different badly written autoconf tests.
33
- Modify NetCDF detection for enhanced results.
4+
- Add support for parallel I/O introduced in NetCDF 4.
45

56
* Mon Mar 29 2010 Damien Caliste <[email protected]> 1.0.3
67
- Correct configure.ac and Makefile.am for aclocal to always run with its

config/etsf/template.Makefile.am

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@ else
99
module_DATA = etsf_io.@MODULE_EXT@
1010
endif
1111

12-
AM_FCFLAGS = -I$(top_builddir)/src/low_level -I$(srcdir) -I@NETCDF_CFLAGS@
12+
CLEANFILES = $(module_DATA)
1313

14-
libetsf_io_a_SOURCES = etsf_io.f90
14+
if HAVE_PARALLEL_IO
15+
NETCDF_WRAPPERS = $(top_builddir)/src/low_level/netcdf4_wrappers.o
16+
else
17+
NETCDF_WRAPPERS = $(top_builddir)/src/low_level/netcdf3_wrappers.o
18+
endif
1519

16-
libetsf_io_a_LIBADD = $(top_builddir)/src/low_level/etsf_io_low_level.o
20+
AM_FCFLAGS = -I$(top_builddir)/src/low_level -I$(srcdir) @NETCDF_INCLUDES@
21+
22+
libetsf_io_a_SOURCES = etsf_io.f90
1723

24+
libetsf_io_a_LIBADD = $(top_builddir)/src/low_level/etsf_io_low_level.o \
25+
$(NETCDF_WRAPPERS)
1826

1927
#dependencies
2028
etsf_io.o: etsf_io.f90 \

config/etsf/template.tests_init

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ contains
2020
type(etsf_io_low_error), intent(in) :: error
2121

2222
if (lstat) then
23-
write(*, "(A,A,A,A)") "== ", name, repeat(" ", 68 - len(name)), "OK =="
23+
write(*, "(A,A,A,A)") "== ", name, repeat(" ", 78 - len(name)), "OK =="
2424
else
25-
write(*, "(A,A,A,A)") "== ", name, repeat(" ", 68 - len(name)), "Failed =="
25+
write(*, "(A,A,A,A)") "== ", name, repeat(" ", 78 - len(name)), "Failed =="
2626
call etsf_io_low_error_handle(error)
2727
end if
2828
end subroutine tests_write_status

config/etsf/template.utils_Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ else
1616
module_DATA = etsf_io_file.@MODULE_EXT@ etsf_io_tools.@MODULE_EXT@
1717
endif
1818

19-
AM_FCFLAGS = -I$(top_builddir)/src/low_level -I$(top_builddir)/src/group_level -I@NETCDF_CFLAGS@
19+
CLEANFILES = $(module_DATA)
20+
21+
AM_FCFLAGS = -I$(top_builddir)/src/low_level -I$(top_builddir)/src/group_level @NETCDF_INCLUDES@
2022

2123
libetsf_io_utils_a_SOURCES = etsf_io_file.f90 \
2224
etsf_io_tools.f90

configure.ac

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ AC_ARG_WITH([netcdf-libs],
7878
AS_HELP_STRING([--with-netcdf-libs],
7979
[NetCDF link flags.]),
8080
[ac_netcdf_libs="$withval"],
81-
[ac_netcdf_libs=""])
81+
[ac_netcdf_libs="-lnetcdff -lnetcdf"])
8282
AC_ARG_WITH([netcdf-prefix],
8383
AS_HELP_STRING([--with-netcdf-prefix],
8484
[Prefix directory where to look for NetCDF components.]),
@@ -133,6 +133,24 @@ if test "$withnetcdf" = "no" ; then
133133
AC_MSG_ERROR(["No 'NetCDF' library found."])
134134
fi
135135

136+
dnl Check whether NetCDF has the comm argument for parallel IO
137+
AC_MSG_CHECKING([for parallel IO with NetCDF])
138+
FCFLAGS_SVG="$FCFLAGS"
139+
LIBS_SVG="$LIBS"
140+
FCFLAGS="$FCFLAGS $ac_netcdf_incs"
141+
LIBS="$ac_netcdf_libs $LIBS"
142+
AC_LINK_IFELSE([
143+
program main
144+
use netcdf
145+
integer :: s, ncid
146+
s = nf90_open(path = "", mode = NF90_NOWRITE, ncid = ncid, comm = 1, info = 1)
147+
end program main
148+
], withpio="yes", withpio="no")
149+
AC_MSG_RESULT([$withpio])
150+
LIBS="$LIBS_SVG"
151+
FCFLAGS="$FCFLAGS_SVG"
152+
AM_CONDITIONAL(HAVE_PARALLEL_IO, test "$withpio" = "yes")
153+
136154
dnl Test if only the library must be built
137155
ac_build_tutorials="no"
138156
AC_ARG_ENABLE(build-tutorials,

debian/changelog

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,40 @@
1+
etsf-io (1.0.4-1) unstable; urgency=low
2+
3+
[ Damien Caliste ]
4+
* New minor upstream release with parallel IO support introduced by NetCDF 4.
5+
6+
-- Sylvestre Ledru <[email protected]> Thu, 19 Sep 2013 10:50:37 +0200
7+
8+
etsf-io (1.0.3-5) unstable; urgency=low
9+
10+
[ Damien Caliste ]
11+
* Standards-Version updated to version 3.9.4
12+
* Add a -fPIC compilation flag to allow to build .so libraries
13+
from the static libraries of ETSF_IO.
14+
15+
-- Sylvestre Ledru <[email protected]> Tue, 19 Feb 2013 10:46:37 +0100
16+
17+
etsf-io (1.0.3-4) unstable; urgency=low
18+
19+
[ Sylvestre Ledru ]
20+
* Team upload
21+
* Man page added
22+
* Lintian warning removed
23+
24+
[ Damien Caliste ]
25+
* Standards-Version updated to version 3.9.2
26+
* Add a missing dependency for the devel package on NetCDF
27+
(Closes: #618168, #615652)
28+
* Add a pkg-config configuration file for ease of use.
29+
30+
-- Sylvestre Ledru <[email protected]> Sat, 19 Nov 2011 13:58:37 +0100
31+
132
etsf-io (1.0.3-3) unstable; urgency=low
233

34+
* Team upload
335
* Remove myself from uploaders
436
* Standards-Version updated to version 3.9.1
37+
538
[ Damien Caliste ]
639
* Correct wrong copyright notice (LP: #676077).
740

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5

debian/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Priority: optional
44
Maintainer: Debian Science Team <[email protected]>
55
Uploaders: Damien Caliste <[email protected]>
66
Build-Depends: debhelper (>= 5), cdbs, autotools-dev, gfortran, libnetcdf-dev, texinfo
7-
Standards-Version: 3.9.1
7+
Standards-Version: 3.9.4
88
Homepage: http://www.etsf.eu/resources/software/libraries_and_tools
99
Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/etsf-io/
1010
Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/etsf-io/
@@ -51,7 +51,7 @@ Description: Developer documentation API and tutorials for ETSF_IO
5151
Package: libetsf-io-dev
5252
Section: libdevel
5353
Architecture: any
54-
Depends: ${shlibs:Depends}, ${misc:Depends}
54+
Depends: ${shlibs:Depends}, ${misc:Depends}, libnetcdf-dev
5555
Suggests: libetsf-io-doc
5656
Description: Static libraries and Fortran module files of ETSF_IO
5757
ETSF_IO is a library of F90 routines to read/write the ETSF file format.

debian/etsf-io.manpages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debian/tmp/usr/share/man/man1/etsf_io.1

debian/etsf_io.pc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
prefix=/usr
2+
exec_prefix=${prefix}
3+
libdir=${exec_prefix}/lib
4+
includedir=${prefix}/include
5+
fc=gfortran
6+
fcflags=-I${includedir}
7+
8+
Name: etsf_io
9+
Description: ETSF_IO library, read / write library for NetCDF electronic structure files
10+
Version: 1.0.4
11+
Libs: -L${libdir} -letsf_io
12+
# To be activated later when Debian upgrade to NetCDF 4.2 or later.
13+
#Requires: netcdf-fortran

0 commit comments

Comments
 (0)