debian/0000755000000000000000000000000012251342547007173 5ustar debian/control0000644000000000000000000000157312251334260010575 0ustar Source: syrthes Section: science Priority: extra Maintainer: Debian Science Maintainers Uploaders: Gilles Filippini Build-Depends: debhelper (>= 7.0.50~), gfortran, libmedc-dev, libhdf5-mpi-dev Standards-Version: 3.9.3 Homepage: http://rd.edf.com/syrthes Vcs-Browser: http://git.debian.org/?p=debian-science/packages/syrthes.git;a=summary Vcs-Git: git://git.debian.org/git/debian-science/packages/libgarmin.git Package: syrthes Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: gfortran Description: Transient thermal simulations in complex solid geometries SYRTHES is a general purpose thermal software developed at EDF R&D which models conduction and radiation heat transfers in complex geometries. . SYRTHES can be used coupled with the computational fluid dynamics (CFD) Code_Saturne. debian/dirs0000644000000000000000000000036611736330225010061 0ustar usr/bin /usr/lib/syrthes/bin/Linux /usr/lib/syrthes/data /usr/lib/syrthes/example/cylinder/MESH /usr/lib/syrthes/example/cylinder/RESU /usr/lib/syrthes/example/cylinder/usr /usr/lib/syrthes/include /usr/lib/syrthes/lib/Linux /usr/lib/syrthes/usr debian/README.Debian0000644000000000000000000000054111736330225011231 0ustar syrthes for Debian ------------------ ================================ Documentation not DFSG compliant ================================ The SYRTHES documentation is not available in Debian because not DFSG-free. It can be downloaded from . -- Gilles Filippini Fri, 05 Jun 2009 16:08:31 +0200 debian/README.source0000644000000000000000000000556112251334275011360 0ustar SYRTHES for Debian ------------------ This file is used to keep track of packaging choices, known issues and TO-DOs. ========================================== 1- FILES REMOVED FROM THE UPSTREAM ARCHIVE ========================================== The documentation provided with the upstream archive is not DFSG-free: * source files for PDFs aren't provided * the user manual has the following license: The reproduction of this document is permitted except for commercial and subject to the endorsement of origin. No changes will be made without prior approval from Writer. Hence these files have been removed from the original upstream archive along with generated binary files. See below the complete list of the removed files: doc/ ├── english │   └── syrthes3.4_util_GB.pdf └── francais ├── syrthes3.4_theo.pdf └── syrthes3.4_util.pdf bin/Linux_x86_64/ ├── convert2syrthes ├── syrthes2ensight └── syrthes2med23 lib └── Linux_x86_64 ├── libmainsyrthes3.4.3_Linux_x86_64.a ├── libsatsyrthes3.4.3_Linux_x86_64.a └── libsyrthes3.4.3_Linux_x86_64.a src/s/syrban.F~ The documentation can be downloaded from . ============================================== 2- HOW THE SOURCE PACKAGE IS HANDLED USING GIT ============================================== The work on this package takes place on the alioth git repository. It requires an alioth account with grant to the collab-maint group. Cloning the repository: $ git clone @alioth.debian.org:/git/debian-science/packages/syrthes.git The repository has 2 remote branches: * origin/upstream * origin/master HEAD is binded to master. master fetched localy by the clone: $ git branch * master A packaging cycle starts by downloading the new upstream tarball using uscan. uscan triggers the script debian/orig-tar.sh to remove non DFSG-free parts of the tarball and append the -dfsg part to upstream version. Then the tarball is imported into git, provided the upstream and pristin-tar branches are tracked locally (needed only once):It $ git checkout -b upstream origin/upstream $ git checkout -b pristine-tar origin/pristine-tar Then we can do the import: $ git-import-orig --pristine-tar /path/to/upstream-dfsg/tarball It will import, tag and merge into master the new upstream release. When the import is completed we then switch to the master branch: $ git checkout master Then we can work on the packaging, still in the master branch. See below how to patch upstream source code. The package is built using git-buildpackage. See To build using cowbuilder consider using Russ Allberry's git-pbuilder: $ DIST=sid git-buildpackage --git-builder=/usr/bin/git-pbuilder debian/syrthes_create_case.10000644000000000000000000000214111736330225013267 0ustar .TH SYRTHES_CREATE_CASE 1 "July 9, 2009" .SH NAME syrthes_create_case \- Create a new Syrthes case .SH SYNOPSIS .B syrthes_create_case directory .RI "[file]" .SH DESCRIPTION This manual page documents briefly the .B syrthes_create_case command. .PP \fBsyrthes_create_case\fP creates a new Syrthes case into the directory \fbdirectory\fP. This directory must not exist for the command to succeed. .br Once the case is created the new directory should contains the following tree: .PP directory/ |-- Makefile |-- syrthes.data |-- syrthes.env |-- syrthes.ray `-- usr |-- cfluvs.F |-- cphyso.F |-- initmp.F |-- inrefa.F |-- limfso.F |-- limray.F `-- limsol.F .PP A detailed documentation about how to customize these files to suit your case is available at .PP One your case is ready to run you can build the \fBsyrthes\fP exe using the provided makefile. .SH AUTHOR Syrthes was written by EDF S.A. .PP This manual page was written by Gilles Filippini for Debian. debian/patches/0000755000000000000000000000000012251334260010613 5ustar debian/patches/libmed-mesgerr0000644000000000000000000000105311736330225013437 0ustar Define MESGERR explicitly as requested by med_utils.h Index: syrthes/src/util/convert2syrthes/lecture_med.c =================================================================== --- syrthes.orig/src/util/convert2syrthes/lecture_med.c 2011-02-09 00:57:32.000000000 +0100 +++ syrthes/src/util/convert2syrthes/lecture_med.c 2011-02-09 00:57:46.000000000 +0100 @@ -42,7 +42,7 @@ /* include MED */ #include -#define MESGERR +#define MESGERR 1 #include int ouvrir_med(struct typ_maillage *maillage, /* INOUT structure de maillage */ debian/patches/as-needed0000644000000000000000000000100511736330225012363 0ustar Description: Correct order of arguments, allowing to link with --as-needed option. Author: Ilya Barygin Bug-Ubuntu: https://launchpad.net/bugs/803201 Bug-Debian: http://bugs.debian.org/632521 --- syrthes-3.4.3-dfsg1.orig/src/util/convert2syrthes/Makefile +++ syrthes-3.4.3-dfsg1/src/util/convert2syrthes/Makefile @@ -17,5 +17,5 @@ endif exe : @echo $(MESS) - cc -o convert2syrthes $(CFLAGS) $(INCLUDE) $(LIBS) $(SOURCES) + cc -o convert2syrthes $(CFLAGS) $(INCLUDE) $(SOURCES) $(LIBS) debian/patches/f2c0000644000000000000000000000105211736330225011212 0ustar Add a test against __GNUC__ to target gcc, whatever the arch is. Index: syrthes/include/f2c_syrthes.h =================================================================== --- syrthes.orig/include/f2c_syrthes.h 2009-09-27 22:33:10.000000000 +0200 +++ syrthes/include/f2c_syrthes.h 2009-09-27 22:35:40.000000000 +0200 @@ -1,3 +1,9 @@ +#ifdef __GNUC__ +#define name2(a,b) a##b +#define proc(x,y) name2(x,_) +#define proci(x) x + +#else #ifdef __sgi #define name2(a,b) a##b #define proc(x,y) name2(x,_) @@ -55,3 +61,4 @@ #endif #endif #endif +#endif debian/patches/series0000644000000000000000000000005112251334260012024 0ustar syrthes_env f2c libmed-mesgerr as-needed debian/patches/syrthes_env0000644000000000000000000000327111736330225013116 0ustar Set the SYRTHES environment variables for a debian box. Index: syrthes/bin/Makefile.in =================================================================== --- syrthes.orig/bin/Makefile.in 2009-07-07 02:07:12.000000000 +0200 +++ syrthes/bin/Makefile.in 2009-07-07 18:25:01.000000000 +0200 @@ -43,10 +43,10 @@ CC = /usr/bin/gcc CFLAGS = -O2 -D_FILE_OFFSET_BITS=64 -DHAVE_C_IO # FORTRAN compiler - FC = /usr/bin/g77 + FC = /usr/bin/gfortran FCFLAGS = -O2 -DHAVE_C_IO -D_FILE_OFFSET_BITS=64 # loader - LD = /usr/bin/g77 + LD = /usr/bin/gfortran LDFLAGS = -O2 # endif Index: syrthes/bin/Makefile =================================================================== --- syrthes.orig/bin/Makefile 2009-07-07 02:07:12.000000000 +0200 +++ syrthes/bin/Makefile 2009-07-07 18:25:01.000000000 +0200 @@ -33,6 +33,10 @@ # Makefile for Syrthes ###################### + +NOM_ARCH=Linux +SYRTHES_HOME=$(shell echo $${SYRTHES_HOME:-"@SYRTHES_HOME@"}) + include $(SYRTHES_HOME)/bin/Makefile.in # Environment Macros @@ -133,7 +137,7 @@ @rm -f *.o @if [ ! -d "$(ARCH_SYRTHES)" ] ;\ - then mkdir "$(ARCH_SYRTHES)" ;\ + then mkdir -p "$(ARCH_SYRTHES)" ;\ fi ;\ @mv *.a $(ARCH_SYRTHES) Index: syrthes/bin/syrthes_create_case =================================================================== --- syrthes.orig/bin/syrthes_create_case 2009-07-07 02:07:12.000000000 +0200 +++ syrthes/bin/syrthes_create_case 2009-07-07 18:26:09.000000000 +0200 @@ -3,6 +3,9 @@ # Creation d'un cas SYRTHES #========================================================================== +set -e + +SYRTHES_HOME=@SYRTHES_HOME@ echo echo "***************************************** " debian/orig-tar.sh0000755000000000000000000000156012251334275011257 0ustar #!/bin/sh -e # To be used with the same args as if it were called by uscan: # debian/orig-tar.sh --upstream-version SOURCE_NAME=syrthes VERSION=$2 DEBIAN_VERSION=$VERSION-dfsg1 UPSTREAM_SOURCE_DIR=${SOURCE_NAME}$VERSION DEBIAN_SOURCE_DIR=${SOURCE_NAME}-$DEBIAN_VERSION TAR=../${SOURCE_NAME}_$DEBIAN_VERSION.orig.tar.gz # extract the upstream archive unzip $3 >/dev/null # rename upstream source dir mv ${UPSTREAM_SOURCE_DIR} ${DEBIAN_SOURCE_DIR} # convert text files from dos to unix for file in $(find ${DEBIAN_SOURCE_DIR} -type f); do if file -b $file | egrep -w 'FORTRAN program|text' >/dev/null; then fromdos -o $file fi done # repack into orig.tar.gz without unwanted files tar -c -z -X debian/orig-tar.exclude -f $TAR ${DEBIAN_SOURCE_DIR}/ rm -rf ${DEBIAN_SOURCE_DIR} echo "syrthes: Applied DFSG removals and renamed archive to `basename ${TAR}`" debian/docs0000644000000000000000000000002612251334275010043 0ustar README.txt README.txt debian/copyright0000644000000000000000000000100711736330225011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: SYRTHES Upstream-Contact: EDF S.A. Upstream-Source: http://rd.edf.com/syrthes Files: * Copyright: © 1988-2008 EDF S.A. License: GPL-2+ Files: debian/* Copyright: © 2009 Gilles Filippini License: GPL-2+ License: GPL-2+ On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-2' file. debian/compat0000644000000000000000000000000211736330225010366 0ustar 7 debian/changelog0000644000000000000000000000710112251337334011042 0ustar syrthes (3.4.3-dfsg1-7) unstable; urgency=low * debian/rules: define MED_API_23 for the convert2syrthes build (closes: #730901). -- Gilles Filippini Mon, 09 Dec 2013 13:57:37 +0100 syrthes (3.4.3-dfsg1-6) unstable; urgency=low * d/rules: + support for any default mpi implementation (Closes: #666417) * d/copyright: + Update to the version 1.0 of the Machine-readable debian/copyright format specification * d/README.source: + Drop the quilt section, no needed anymore with source format "3.0 (quilt)" * d/control: + Bump Standards-Version to 3.9.3 (no change needed) -- Gilles Filippini Sun, 01 Apr 2012 15:43:12 +0200 syrthes (3.4.3-dfsg1-5) unstable; urgency=low * d/rules: + MED 3.0 support (Closes: #646466) + Minor cleanning -- Gilles Filippini Tue, 01 Nov 2011 23:22:43 +0100 syrthes (3.4.3-dfsg1-4) unstable; urgency=low * New patch as-needed from Ubuntu Dev Ilya Barygin: fixes FTBFS with linker flag --as-needed (closes: #632521) * debian/control: + Build-Depends: drop quilt + Standards-Version: 3.9.2 (no change needed) -- Gilles Filippini Mon, 04 Jul 2011 22:52:36 +0200 syrthes (3.4.3-dfsg1-3) unstable; urgency=low * debian/rules: ensure proper MPI configuration using the information provided by mpi-default-dev in /usr/share/mpi-default-dev/debian_defaults -- Gilles Filippini Sun, 20 Feb 2011 21:02:21 +0100 syrthes (3.4.3-dfsg1-2) unstable; urgency=low * Build-Depends: replace libhdf5-openmpi-dev with libhdf5-mpi-dev which pulls the default MPI implementation of libhdf5 depending on the architecture. -- Gilles Filippini Sun, 20 Feb 2011 15:26:41 +0100 syrthes (3.4.3-dfsg1-1) unstable; urgency=low * New upstream release: + new convert2syrthes util to convert mesh files from GAMBIT, GMSH or MED to the SYRTHES format * Quit hard coding the version number in the install path (closes: #571022) * Drop naming the binary package after the version when the SCIENCE_EXPLICIT_VERSION variable is set at build time * move to source format 3.0 (quilt) * debian/control: + drop DM-Upload-Allowed and set Uploaders to my debian address + Build-Depends: libmedc-dev, libhdf5-openmpi-dev (for convert2syrthes) + versioned Build-Depends on debhelper for source format 3.0 (quilt) * debian/rules: switch to the dh sequencer * New patch: + libmed-mesgerr: the macro MESGERR has to be defined explicitly * debian/convert2syrthes.1: manpage for convert2syrthes written after the convert2syrthes README.txt file -- Gilles Filippini Tue, 15 Feb 2011 23:53:29 +0100 syrthes (3.4.2-dfsg1-3) unstable; urgency=low * New patch: + f2c: Add a test against __GNUC__ to match gcc whatever the arch is (Closes: #548491) -- Gilles Filippini Sun, 27 Sep 2009 23:04:17 +0200 syrthes (3.4.2-dfsg1-2) unstable; urgency=low * debian/patches/syrthes_env: + Remove useless patch's part against syrthes.profile file. * debian/rules: + Fix files' permissions on install. + Add get-orig-source target. * debian/syrthes2ensight.1: + Escape minus signs. * debian/README.source: + Updated upstream source handling from uscan to git-import-orig. -- Gilles Filippini Sun, 27 Sep 2009 18:18:52 +0200 syrthes (3.4.2-dfsg1-1) unstable; urgency=low * Initial release (Closes: #531902) -- Gilles Filippini Tue, 15 Sep 2009 17:02:31 +0200 debian/manpages0000644000000000000000000000011711736330225010705 0ustar debian/syrthes_create_case.1 debian/syrthes2ensight.1 debian/convert2syrthes.1 debian/rules0000755000000000000000000000374312251337206010256 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS # MED 2.3.6 API shipped with MED 3.0 INCMED=-DMED_API_23 -I/usr/include/2.3.6 # Which MPI implementation (requested by libhdf5-mpi-dev) ifneq (,$(shell ls /usr/share/mpi-default-dev/debian_defaults)) include /usr/share/mpi-default-dev/debian_defaults INCMED+=-I/usr/include/$(ARCH_DEFAULT_MPI_IMPL) endif SYRTHES_HOME=usr/lib/syrthes INSTALL_DIR=$(CURDIR)/debian/syrthes %: dh $@ override_dh_auto_build: cd $(CURDIR)/bin && SYRTHES_HOME=$(CURDIR) $(MAKE) install # convert2syrthes make -C src/util/convert2syrthes MED="yes" INCMED="$(INCMED)" LIBMED="-lmedC" override_dh_auto_clean: SYRTHES_HOME=$(CURDIR) $(MAKE) -C $(CURDIR)/bin distclean override_dh_auto_install: set -e; \ for dir in bin bin/Linux data example/cylinder example/cylinder/MESH \ example/cylinder/RESU example/cylinder/usr include lib/Linux \ usr; do \ find $$dir -maxdepth 1 -type f -exec install -m a-x "{}" $(INSTALL_DIR)/$(SYRTHES_HOME)/$$dir \; ; \ done install src/util/convert2syrthes/convert2syrthes $(INSTALL_DIR)/usr/bin cd $(INSTALL_DIR)/$(SYRTHES_HOME)/bin && chmod a+x syrthes_create_case Linux/syrthes2ensight sed -i "s!@SYRTHES_HOME@!/$(SYRTHES_HOME)!g" $(INSTALL_DIR)/$(SYRTHES_HOME)/bin/syrthes_create_case sed -i "s!@SYRTHES_HOME@!/$(SYRTHES_HOME)!g" $(INSTALL_DIR)/$(SYRTHES_HOME)/bin/Makefile rm -f $(INSTALL_DIR)/$(SYRTHES_HOME)/bin/syrthes.profile # Move example dir to /usr/share/doc/syrthes/ mkdir -p $(INSTALL_DIR)/usr/share/doc/syrthes$(EXPLICIT_VERSION) mv $(INSTALL_DIR)/$(SYRTHES_HOME)/example $(INSTALL_DIR)/usr/share/doc/syrthes/ cd $(INSTALL_DIR)/usr/share/doc/syrthes/example && tar czf cylinder.tar.gz cylinder && rm -fr cylinder override_dh_link: dh_link \ /$(SYRTHES_HOME)/bin/syrthes_create_case /usr/bin/syrthes_create_case \ /$(SYRTHES_HOME)/bin/Linux/syrthes2ensight /usr/bin/syrthes2ensight debian/convert2syrthes.10000644000000000000000000000276411736330225012447 0ustar .TH CONVERT2SYRTHES 1 "February 10, 2011" .SH NAME convert2syrthes \- Convert mesh files to SYRTHES format .SH SYNOPSIS .B convert2syrthes \-m mesh_file.ext [\-dim dimension] [\-o output_file.syr] .SH DESCRIPTION This manual page documents briefly the .B convert2syrthes command. .PP \fBconvert2syrthes\fP can convert mesh files from GAMBIT, GMSH or MED to SYRTHES format .PP A detailed documentation is available at .SH OPTIONS .TP 12 \-m mesh_file.ext Specify the mesh file to convert. The mesh format is inferred from the file's extension: .br * .neu (GAMBIT format) .br * .msh (GMSH format) .br * .med (MED format) .br Note: For MED format, convert2syrthes creates an additionnal ASCII file (..._desc) where one finds the links between group names (used in Salome) and family (or references) numbers used in SYRTHES .TP \-dim dimension With dimension = 2 or 3. This options is requested for the GMSH file format, and ignored in the other cases .TP \-o output_file.syr To change the name of the output file. .SH EXAMPLES .TP .B convert2syrthes \-m square.med --> square.syr square.syr_desc .TP .B convert2syrthes \-m square.neu --> square.syr .TP .B convert2syrthes \-m square.msh \-dim 2 --> square.syr .TP .B convert2syrthes \-m square.med \-o square2.syr --> square2.syr square2.syr_desc .SH AUTHOR Syrthes was written by EDF S.A. .PP This manual page was written by Gilles Filippini for Debian from the convert2syrthes README.txt file. debian/source/0000755000000000000000000000000011736330225010470 5ustar debian/source/format0000644000000000000000000000001411736330225011676 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000035211736330225010221 0ustar version=3 # syrthes upstream archives can't be watched using uscan. # I download the archive by hand and apply the script debian/orig-tar.sh the # same way uscan would have: # debian/orig-tar.sh --upstream-version debian/orig-tar.exclude0000644000000000000000000000006712251334275012274 0ustar */doc bin/Linux_x86_64 lib *~ example/cylinder/syrthes debian/syrthes2ensight.10000644000000000000000000000344211736330225012422 0ustar .TH SYRTHES2ENSIGHT 1 "July 9, 2009" .SH NAME syrthes2ensight \- Convert Syrthes geometry and result files to Ensight format .SH SYNOPSIS .B syrthes2ensight [\-d] [\-q] syr.geom syr.res ensight_file .br .B syrthes2ensight \-g [\-d] [\-q] syr.geom ensight_file .br .B syrthes2ensight \-r [\-d] [\-q] syr.res ensight_file .br .B syrthes2ensight \-h .SH DESCRIPTION This manual page documents briefly the .B syrthes2ensight command. .PP \fBsyrthes2ensight\fP can convert both Syrthes .geom and .res files. Input parameters depend on the way \fBsyrthes2ensight\fP is invoked. .PP Most of the time \fBsyrthes2ensight\fP is invoked with three parameters: .PP \fBsyrthes2ensight\fP [options] syr.geom syr.res ensight_file with .TP 12 syr.geom Geometrical file generated by \fBsyrthes\fP. .TP syr.resu Result file generated by \fBsyrthes\fP. It can be either a single time step result file or a chrono file containing several time steps. In the latter all time steps will be handled. .TP ensight_file Output Ensight file generated by \fBsyrthes2ensight\fP. .PP To process a geometrical file only: .PP \fBsyrthes2ensight\fP \-g [options] syr.geom ensight_file .PP To process a result file only: .PP \fBsyrthes2ensight\fP \-r [options] syr.resu ensight_file .PP A detailed documentation is available at .SH OPTIONS .TP 12 \-d Split P2 elements into P1 elements. .TP \-g Use only a geometry file as input. No result file should be provided. .TP \-h Display a short .B syrthes2ensight usage message .TP \-q Keep quadratic elements (default: convert into P1 elements). .TP \-r Use only a result file as input. No geometry file should be provided. .SH AUTHOR Syrthes was written by EDF S.A. .PP This manual page was written by Gilles Filippini for Debian.