debian/0000755000000000000000000000000012253620162007165 5ustar debian/flexpart.prerm0000644000000000000000000000020212253606277012066 0ustar #!/bin/sh set -e #DEBHELPER# if [ "$1" != "upgrade" ] then update-alternatives --remove flexpart /usr/bin/flexpart fi debian/control0000644000000000000000000000132612253606277010605 0ustar Source: flexpart Section: science Priority: optional Maintainer: Alastair McKinstry Build-Depends: debhelper (>= 9), gfortran, libgrib-api-dev, libjasper-dev Standards-Version: 3.9.5 Homepage: http://transport.nilu.no/flexpart Package: flexpart Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Particle Dispersion model for tracing air transport phenomena The FLEXPART model is a Lagrangian Particle Dispersion Model developed at the Norwegian Institute for Air Research in the Department of Atmospheric and Climate Research. The model development team consists of Andreas Stohl (who originally wrote FLEXPART), Sabine Eckhardt, Harald Sodemann, and John Burkhart. debian/watch0000644000000000000000000000011712253606277010230 0ustar version=3 http://zardoz.nilu.no/~flexpart/flexpart/FLEXPART_(\d)0.(\d+).tar.gz debian/flexpart.examples0000644000000000000000000000001212253606277012556 0ustar options/* debian/source/0000755000000000000000000000000012253606277010500 5ustar debian/source/format0000644000000000000000000000001412253606277011706 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012253606277010627 5ustar debian/patches/series0000644000000000000000000000003412253606277012041 0ustar fortran.patch mcmodel.patch debian/patches/mcmodel.patch0000644000000000000000000000244612253606277013276 0ustar Index: flexpart-9.02/makefile.ecmwf_gfortran =================================================================== --- flexpart-9.02.orig/makefile.ecmwf_gfortran 2013-12-15 10:55:46.000000000 +0000 +++ flexpart-9.02/makefile.ecmwf_gfortran 2013-12-15 10:56:28.000000000 +0000 @@ -6,7 +6,7 @@ INCPATH = /usr/include LIBPATH1 = /usr/lib LIBPATH2 = -FFLAGS = -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) +FFLAGS = $(FCFLAGS) -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) LFLAGS = $(LDFLAGS) $(FFLAGS) -Wl,--as-needed -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper MODPATH = /usr/include # Index: flexpart-9.02/makefile.gfs_gfortran =================================================================== --- flexpart-9.02.orig/makefile.gfs_gfortran 2013-12-15 10:55:46.000000000 +0000 +++ flexpart-9.02/makefile.gfs_gfortran 2013-12-15 10:55:46.000000000 +0000 @@ -7,7 +7,7 @@ INCPATH = /usr/include LIBPATH1 = /usr/lib LIBPATH2 = -FFLAGS = -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) +FFLAGS = $(FCFLAGS) -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) LFLAGS:= $(LDFLAGS) $(FFLAGS) -L$(LIBPATH1) -Wl,--as-needed -lgrib_api_f90 -lgrib_api -lm -ljasper # debian/patches/fortran.patch0000644000000000000000000000551712253606277013333 0ustar Author: Alastair McKinstry Description: Makefile changes needed for Debian Last-Updated: 2013-12-14 Forwarded: not-needed Index: flexpart-9.02/makefile.gfs_gfortran =================================================================== --- flexpart-9.02.orig/makefile.gfs_gfortran 2013-12-14 11:16:12.000000000 +0000 +++ flexpart-9.02/makefile.gfs_gfortran 2013-12-14 11:16:12.000000000 +0000 @@ -1,14 +1,14 @@ SHELL = /bin/bash -MAIN = FLEXPART_GFS_GFORTRAN +MAIN = flexpart.gfs INCF = incl* # FC = gfortran -INCPATH = /xnilu_wrk/flex_wrk/bin64/grib_api/include -LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib -LIBPATH2 = /flex_wrk/flexpart/lib64/gfortran/lib/ -FFLAGS = -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) -LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper +INCPATH = /usr/include +LIBPATH1 = /usr/lib +LIBPATH2 = +FFLAGS = -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) +LFLAGS:= $(LDFLAGS) $(FFLAGS) -L$(LIBPATH1) -Wl,--as-needed -lgrib_api_f90 -lgrib_api -lm -ljasper # MODOBJS = \ @@ -78,7 +78,7 @@ $(MAIN): $(MODOBJS) $(OBJECTS) - $(FC) *.o -o $(MAIN) $(LDFLAGS) + $(FC) *.o -o $(MAIN) $(LFLAGS) $(OBJECTS): $(MODOBJS) @@ -86,5 +86,5 @@ $(FC) -c $(FFLAGS) $< clean: - rm *.o *.mod + rm -f *.o *.mod $(MAIN) Index: flexpart-9.02/makefile.ecmwf_gfortran =================================================================== --- flexpart-9.02.orig/makefile.ecmwf_gfortran 2013-12-14 11:16:12.000000000 +0000 +++ flexpart-9.02/makefile.ecmwf_gfortran 2013-12-14 11:16:45.000000000 +0000 @@ -1,15 +1,14 @@ SHELL = /bin/bash -MAIN = FLEXPART_GFORTRAN +MAIN = flexpart.ecmwf # FC = gfortran -INCPATH = /xnilu_wrk/flex_wrk/bin64/grib_api/include -LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib -LIBPATH2 = /flex_wrk/flexpart/lib64/gfortran/lib/ -#FFLAGS = -O3 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) -FFLAGS = -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) -#FFLAGS = -fbounds-check -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) -LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper +INCPATH = /usr/include +LIBPATH1 = /usr/lib +LIBPATH2 = +FFLAGS = -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) +LFLAGS = $(LDFLAGS) $(FFLAGS) -Wl,--as-needed -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper +MODPATH = /usr/include # MODOBJS = \ @@ -79,13 +78,13 @@ $(MAIN): $(MODOBJS) $(OBJECTS) - $(FC) *.o -o $(MAIN) $(LDFLAGS) + $(FC) *.o -o $(MAIN) $(LFLAGS) $(OBJECTS): $(MODOBJS) %.o: %.f90 - $(FC) -c $(FFLAGS) $< + $(FC) -c $(FFLAGS) -I$(MODPATH) $< clean: - rm *.o *.mod + rm -f *.o *.mod debian/rules0000755000000000000000000000124012253607714010252 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 CPU:=$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU) ifeq ($(CPU), amd64) export FCFLAGS= -mcmodel=medium endif # magic debhelper rule %: dh $@ override_dh_auto_build: $(MAKE) -f makefile.gfs_gfortran LDFLAGS=$(LDFLAGS) FCFLAGS=$(FCFLAGS) rm -f *.o *.mod $(MAKE) -f makefile.ecmwf_gfortran LDFLAGS=$(LDFLAGS) FCFLAGS=$(FCFLAGS) rm -f ./options/SPECIES/spec_overview find options -type f -exec chmod -x {} \; override_dh_auto_clean: $(MAKE) -f makefile.gfs_gfortran clean $(MAKE) -f makefile.ecmwf_gfortran clean rm -f *.mod erf.f90.185r.combine flexpart.gfs flexpart.ecmwf debian/compat0000644000000000000000000000000212253606277010376 0ustar 9 debian/flexpart.install0000644000000000000000000000005612253606277012416 0ustar flexpart.ecmwf /usr/bin flexpart.gfs /usr/bin debian/flexpart.postinst0000644000000000000000000000065212253606277012635 0ustar #!/bin/sh set -e #DEBHELPER# case "$1" in configure|abort-remove|abort-deconfigure) # Install alternatives update-alternatives --install /usr/bin/flexpart flexpart /usr/bin/flexpart.ecmwf 20 update-alternatives --auto flexpart ;; abort-upgrade) # Nothing to undo :; ;; *) echo "$0: Undocumented call: \"$@\"" >&2 exit 1 ;; esac debian/changelog0000644000000000000000000000300112253607421011034 0ustar flexpart (9.02-7) unstable; urgency=medium * Re-add B-D on jasper that got dropped by mistake. * chmod -x data files in examples. -- Alastair McKinstry Mon, 16 Dec 2013 14:22:03 +0000 flexpart (9.02-6) unstable; urgency=medium * update-alternatives now removes alternatives on rm. Closes: #729212. * Standards-Version: 3.9.5. No changes required. * Move to section: science. Closes: #729444. * Fix typo in homepage URL. Closes: #730446. * Add -Wl,--as-needed to remove unnecessary links in makefiles -- Alastair McKinstry Sun, 15 Dec 2013 10:52:47 +0000 flexpart (9.02-5) unstable; urgency=low * Another typo. Closes: #728128. -- Alastair McKinstry Thu, 07 Nov 2013 19:12:35 +0000 flexpart (9.02-4) unstable; urgency=low * Fix typo in patch. Also extend to kFreebsd. Closes: #728128. -- Alastair McKinstry Mon, 04 Nov 2013 08:55:12 +0000 flexpart (9.02-3) unstable; urgency=low * Build with mcmodel=medium for amd64. Closes: #728128. -- Alastair McKinstry Sun, 03 Nov 2013 17:36:57 +0000 flexpart (9.02-2) unstable; urgency=low * Depend on jasper, Needed for grib-api. Closes: #724648. (Dependencies confirmed with pbuilder) -- Alastair McKinstry Mon, 14 Oct 2013 12:50:51 +0100 flexpart (9.02-1) unstable; urgency=low * Initial release. (Closes: #693833) -- Alastair McKinstry Sun, 22 Sep 2013 21:08:25 +0100 debian/copyright0000644000000000000000000000153312253606277011135 0ustar Copyright 1998-2010 Andreas Stohl Authors: Andreas Stohl, Petra Seibert, A. Frank, Gerhard Wotawa, Caroline Forster, Sabine Eckhardt, John Burkhart, Harald Sodemann FLEXPART is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. FLEXPART is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian systems, the GNU GPLv3 is available at /usr/share/common-licenses/GPL-3 The file convect4c.f90 was written by Kerry Emanuel and downloaded from: http://www-paoc.mit.edu/~emanuel/home.html debian/TODO0000644000000000000000000000012112253606277007662 0ustar - Include ECMWF extraction routines - Write man page. - Include python-flexpart.