[med-svn] [Git][med-team/pftools][master] 12 commits: d/watch: version=5

Andreas Tille (@tille) gitlab at salsa.debian.org
Thu Nov 12 07:41:50 GMT 2026



Andreas Tille pushed to branch master at Debian Med / pftools


Commits:
cc31f073 by Andreas Tille at 2026-11-11T21:14:35+01:00
d/watch: version=5

- - - - -
065b5332 by Andreas Tille at 2026-11-11T21:15:04+01:00
New upstream version

- - - - -
c951bdf6 by Andreas Tille at 2026-11-11T21:15:05+01:00
New upstream version 3.2.14
- - - - -
3bb0dc95 by Andreas Tille at 2026-11-11T21:17:29+01:00
Update upstream source from tag 'upstream/3.2.14'

Update to upstream version '3.2.14'
with Debian dir d9229dcbf63c4609c94ae5ad197c96c74747c1e9
- - - - -
778f64d4 by Andreas Tille at 2026-11-11T21:17:29+01:00
Standards-Version: 4.7.4 (routine-update)

- - - - -
947d9613 by Andreas Tille at 2026-11-11T21:23:46+01:00
Changes made by cme

- - - - -
3b3bc257 by Andreas Tille at 2026-11-11T21:23:53+01:00
Reformat the Last-Update date as ISO YYYY-MM-DD.

Changes-By: lintian-brush
Fixes: lintian: source: invalid-dep3-format-patch-wrong-last-update [debian/patches/fix_perl_interpreter.patch]
See-also: https://lintian.debian.org/tags/invalid-dep3-format-patch-wrong-last-update.html

- - - - -
1e56e209 by Andreas Tille at 2026-11-11T21:24:28+01:00
Re-sort changelog

- - - - -
b4082e9c by Andreas Tille at 2026-11-11T21:26:30+01:00
Bug closed in new upstream version

- - - - -
1396fb4c by Andreas Tille at 2026-11-11T21:47:19+01:00
Build-Depends: dh-sequence-single-binary

- - - - -
2e70fa2a by Andreas Tille at 2026-11-12T08:36:44+01:00
Fix build with debhelper compat 14

- - - - -
e27d1201 by Andreas Tille at 2026-11-12T08:40:51+01:00
Upload to unstable

- - - - -


14 changed files:

- README.md
- data/Matrices/pam30.cmp
- data/Matrices/pam80.cmp
- debian/changelog
- debian/control
- − debian/manpages
- debian/patches/fix_perl_interpreter.patch
- debian/docs → debian/pftools.docs
- + debian/pftools.install
- + debian/pftools.manpages
- debian/rules
- debian/watch
- src/C/utils/output.c
- src/Fortran/wrprf.f


Changes:

=====================================
README.md
=====================================
@@ -1,3 +1,4 @@
+[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17360684.svg)](https://doi.org/10.5281/zenodo.17360684)
 [![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat)](http://bioconda.github.io/recipes/pftools/README.html)
 [![install with EasyBuild](https://img.shields.io/badge/install%20with-EasyBuild-brightgreen.svg?style=flat)](#easybuild)
 [![install with Docker](https://img.shields.io/badge/install%20with-Docker-brightgreen.svg?style=flat)](#using-docker)


=====================================
data/Matrices/pam30.cmp
=====================================
@@ -10,30 +10,30 @@
 # 
 #  mean= -4.9502 , stdev= 10.8581
 # 
-  A    B    C    D    E     F    G    H    I    K     L    M    N    P    Q     R    S    T    V    W     Y    Z  ..
- 6.0 -3.0 -6.0 -3.0 -2.0  -8.0 -2.0 -7.0 -5.0 -7.0  -6.0 -5.0 -4.0 -2.0 -4.0  -7.0  0.0 -1.0 -2.0-13.0  -8.0 -3.0 A
-      6.0-12.0  6.0  1.0 -10.0 -3.0 -1.0 -6.0 -2.0  -9.0-10.0  6.0 -7.0 -3.0  -7.0 -1.0 -3.0 -8.0-10.0  -6.0  0.0 B
-          10.0-14.0-14.0 -13.0 -9.0 -7.0 -6.0-14.0 -15.0-13.0-11.0 -8.0-14.0  -8.0 -3.0 -8.0 -6.0-15.0  -4.0-14.0 C
-                8.0  2.0 -15.0 -3.0 -4.0 -7.0 -4.0 -12.0-11.0  2.0 -8.0 -2.0 -10.0 -4.0 -5.0 -8.0-15.0 -11.0  1.0 D
-                     8.0 -14.0 -4.0 -5.0 -5.0 -4.0  -9.0 -7.0 -2.0 -5.0  1.0  -9.0 -4.0 -6.0 -6.0-17.0  -8.0  6.0 E
-
-                           9.0 -9.0 -6.0 -2.0-14.0  -3.0 -4.0 -9.0-10.0-13.0  -9.0 -6.0 -9.0 -8.0 -4.0   2.0-13.0 F
-                                6.0 -9.0-11.0 -7.0 -10.0 -8.0 -3.0 -6.0 -7.0  -9.0 -2.0 -6.0 -5.0-15.0 -14.0 -5.0 G
-                                     9.0 -9.0 -6.0  -6.0-10.0  0.0 -4.0  1.0  -2.0 -6.0 -7.0 -6.0 -7.0  -3.0 -1.0 H
-                                          8.0 -6.0  -1.0 -1.0 -5.0 -8.0 -8.0  -5.0 -7.0 -2.0  2.0-14.0  -6.0 -6.0 I
-                                               7.0  -8.0 -2.0 -1.0 -6.0 -3.0   0.0 -4.0 -3.0 -9.0-12.0  -9.0 -4.0 K
-
-                                                     7.0  1.0 -7.0 -7.0 -5.0  -8.0 -8.0 -7.0 -2.0 -6.0  -7.0 -7.0 L
-                                                         11.0 -9.0 -8.0 -4.0  -4.0 -5.0 -4.0 -1.0-13.0 -11.0 -5.0 M
-                                                               8.0 -6.0 -3.0  -6.0  0.0 -2.0 -8.0 -8.0  -4.0 -3.0 N
-                                                                    8.0 -3.0  -4.0 -2.0 -4.0 -6.0-14.0 -13.0 -4.0 P
-                                                                         8.0  -2.0 -5.0 -5.0 -7.0-13.0 -12.0  6.0 Q
-
-                                                                               8.0 -3.0 -6.0 -8.0 -2.0 -10.0 -4.0 R
-                                                                                    6.0  0.0 -6.0 -5.0  -7.0 -5.0 S
-                                                                                         7.0 -3.0-13.0  -6.0 -6.0 T
-                                                                                              7.0-15.0  -7.0 -6.0 V
-                                                                                                  13.0  -5.0-14.0 W
-
-                                                                                                        10.0 -9.0 Y
-                                                                                                              6.0 Z
+  A    B     C     D     E     F    G    H     I     K     L     M     N     P     Q     R    S    T    V     W     Y     Z  ..
+ 6.0 -3.0  -6.0  -3.0  -2.0  -8.0 -2.0 -7.0  -5.0  -7.0  -6.0  -5.0  -4.0  -2.0  -4.0  -7.0  0.0 -1.0 -2.0 -13.0  -8.0  -3.0 A
+      6.0 -12.0   6.0   1.0 -10.0 -3.0 -1.0  -6.0  -2.0  -9.0 -10.0   6.0  -7.0  -3.0  -7.0 -1.0 -3.0 -8.0 -10.0  -6.0   0.0 B
+           10.0 -14.0 -14.0 -13.0 -9.0 -7.0  -6.0 -14.0 -15.0 -13.0 -11.0  -8.0 -14.0  -8.0 -3.0 -8.0 -6.0 -15.0  -4.0 -14.0 C
+                  8.0   2.0 -15.0 -3.0 -4.0  -7.0  -4.0 -12.0 -11.0   2.0  -8.0  -2.0 -10.0 -4.0 -5.0 -8.0 -15.0 -11.0   1.0 D
+                        8.0 -14.0 -4.0 -5.0  -5.0  -4.0  -9.0  -7.0  -2.0  -5.0   1.0  -9.0 -4.0 -6.0 -6.0 -17.0  -8.0   6.0 E
+ 
+                              9.0 -9.0 -6.0  -2.0 -14.0  -3.0  -4.0  -9.0 -10.0 -13.0  -9.0 -6.0 -9.0 -8.0  -4.0   2.0 -13.0 F
+                                   6.0 -9.0 -11.0  -7.0 -10.0  -8.0  -3.0  -6.0  -7.0  -9.0 -2.0 -6.0 -5.0 -15.0 -14.0  -5.0 G
+                                        9.0  -9.0  -6.0  -6.0 -10.0   0.0  -4.0   1.0  -2.0 -6.0 -7.0 -6.0  -7.0  -3.0  -1.0 H
+                                              8.0  -6.0  -1.0  -1.0  -5.0  -8.0  -8.0  -5.0 -7.0 -2.0  2.0 -14.0  -6.0  -6.0 I
+                                                    7.0  -8.0  -2.0  -1.0  -6.0  -3.0   0.0 -4.0 -3.0 -9.0 -12.0  -9.0  -4.0 K
+  
+                                                          7.0   1.0  -7.0  -7.0  -5.0  -8.0 -8.0 -7.0 -2.0  -6.0  -7.0  -7.0 L
+                                                               11.0  -9.0  -8.0  -4.0  -4.0 -5.0 -4.0 -1.0 -13.0 -11.0  -5.0 M
+                                                                      8.0  -6.0  -3.0  -6.0  0.0 -2.0 -8.0  -8.0  -4.0  -3.0 N
+                                                                            8.0  -3.0  -4.0 -2.0 -4.0 -6.0 -14.0 -13.0  -4.0 P
+                                                                                  8.0  -2.0 -5.0 -5.0 -7.0 -13.0 -12.0   6.0 Q
+     
+                                                                                        8.0 -3.0 -6.0 -8.0  -2.0 -10.0  -4.0 R
+                                                                                             6.0  0.0 -6.0  -5.0  -7.0  -5.0 S
+                                                                                                  7.0 -3.0 -13.0  -6.0  -6.0 T
+                                                                                                       7.0 -15.0  -7.0  -6.0 V
+                                                                                                            13.0  -5.0 -14.0 W
+       
+                                                                                                                  10.0  -9.0 Y
+                                                                                                                         6.0 Z


=====================================
data/Matrices/pam80.cmp
=====================================
@@ -10,30 +10,30 @@
 # 
 #  mean= -2.4689 , stdev=  5.7799
 # 
-  A    B    C    D    E     F    G    H    I    K     L    M    N    P    Q     R    S    T    V    W     Y    Z  ..
- 4.0 -1.0 -4.0 -1.0 -1.0  -5.0  0.0 -4.0 -2.0 -4.0  -4.0 -3.0 -1.0  0.0 -2.0  -4.0  1.0  1.0  0.0 -8.0  -5.0 -1.0 A
-      5.0 -7.0  5.0  2.0  -7.0 -1.0  0.0 -4.0 -1.0  -6.0 -5.0  4.0 -3.0  0.0  -3.0  0.0 -1.0 -4.0 -7.0  -4.0  2.0 B
-           9.0 -9.0 -9.0  -8.0 -6.0 -5.0 -4.0 -9.0  -9.0 -8.0 -6.0 -5.0 -9.0  -5.0 -1.0 -4.0 -3.0-10.0  -2.0 -9.0 C
-                6.0  4.0  -9.0 -1.0 -1.0 -4.0 -2.0  -7.0 -6.0  3.0 -4.0  0.0  -5.0 -1.0 -2.0 -5.0-10.0  -7.0  2.0 D
-                     6.0  -9.0 -2.0 -2.0 -3.0 -2.0  -6.0 -4.0  0.0 -3.0  2.0  -4.0 -2.0 -3.0 -4.0-11.0  -6.0  5.0 E
+  A    B    C    D    E     F    G    H    I    K     L    M    N    P    Q     R    S    T    V     W     Y    Z  ..
+ 4.0 -1.0 -4.0 -1.0 -1.0  -5.0  0.0 -4.0 -2.0 -4.0  -4.0 -3.0 -1.0  0.0 -2.0  -4.0  1.0  1.0  0.0  -8.0  -5.0 -1.0 A
+      5.0 -7.0  5.0  2.0  -7.0 -1.0  0.0 -4.0 -1.0  -6.0 -5.0  4.0 -3.0  0.0  -3.0  0.0 -1.0 -4.0  -7.0  -4.0  2.0 B
+           9.0 -9.0 -9.0  -8.0 -6.0 -5.0 -4.0 -9.0  -9.0 -8.0 -6.0 -5.0 -9.0  -5.0 -1.0 -4.0 -3.0 -10.0  -2.0 -9.0 C
+                6.0  4.0  -9.0 -1.0 -1.0 -4.0 -2.0  -7.0 -6.0  3.0 -4.0  0.0  -5.0 -1.0 -2.0 -5.0 -10.0  -7.0  2.0 D
+                     6.0  -9.0 -2.0 -2.0 -3.0 -2.0  -6.0 -4.0  0.0 -3.0  2.0  -4.0 -2.0 -3.0 -4.0 -11.0  -6.0  5.0 E
 
-                           8.0 -6.0 -3.0  0.0 -9.0   0.0 -2.0 -5.0 -7.0 -8.0  -6.0 -4.0 -5.0 -4.0 -2.0   4.0 -8.0 F
-                                6.0 -5.0 -6.0 -4.0  -7.0 -5.0 -1.0 -3.0 -4.0  -6.0  0.0 -2.0 -3.0-10.0  -8.0 -2.0 G
-                                     8.0 -5.0 -3.0  -4.0 -5.0  2.0 -2.0  2.0   0.0 -3.0 -4.0 -4.0 -4.0  -1.0  1.0 H
-                                          7.0 -4.0   1.0  1.0 -3.0 -5.0 -4.0  -3.0 -4.0 -1.0  3.0 -8.0  -3.0 -4.0 I
-                                               6.0  -5.0  0.0  0.0 -4.0 -1.0   2.0 -2.0 -1.0 -5.0 -7.0  -6.0 -1.0 K
+                           8.0 -6.0 -3.0  0.0 -9.0   0.0 -2.0 -5.0 -7.0 -8.0  -6.0 -4.0 -5.0 -4.0  -2.0   4.0 -8.0 F
+                                6.0 -5.0 -6.0 -4.0  -7.0 -5.0 -1.0 -3.0 -4.0  -6.0  0.0 -2.0 -3.0 -10.0  -8.0 -2.0 G
+                                     8.0 -5.0 -3.0  -4.0 -5.0  2.0 -2.0  2.0   0.0 -3.0 -4.0 -4.0  -4.0  -1.0  1.0 H
+                                          7.0 -4.0   1.0  1.0 -3.0 -5.0 -4.0  -3.0 -4.0 -1.0  3.0  -8.0  -3.0 -4.0 I
+                                               6.0  -5.0  0.0  0.0 -4.0 -1.0   2.0 -2.0 -1.0 -5.0  -7.0  -6.0 -1.0 K
 
-                                                     6.0  2.0 -5.0 -4.0 -3.0  -5.0 -5.0 -4.0  0.0 -3.0  -4.0 -4.0 L
-                                                          9.0 -4.0 -5.0 -2.0  -2.0 -3.0 -2.0  1.0 -7.0  -6.0 -3.0 M
-                                                               5.0 -3.0 -1.0  -2.0  1.0  0.0 -4.0 -5.0  -3.0  0.0 N
-                                                                    7.0 -1.0  -2.0  0.0 -2.0 -3.0 -9.0  -8.0 -2.0 P
-                                                                         7.0   0.0 -3.0 -3.0 -4.0 -8.0  -7.0  5.0 Q
+                                                     6.0  2.0 -5.0 -4.0 -3.0  -5.0 -5.0 -4.0  0.0  -3.0  -4.0 -4.0 L
+                                                          9.0 -4.0 -5.0 -2.0  -2.0 -3.0 -2.0  1.0  -7.0  -6.0 -3.0 M
+                                                               5.0 -3.0 -1.0  -2.0  1.0  0.0 -4.0  -5.0  -3.0  0.0 N
+                                                                    7.0 -1.0  -2.0  0.0 -2.0 -3.0  -9.0  -8.0 -2.0 P
+                                                                         7.0   0.0 -3.0 -3.0 -4.0  -8.0  -7.0  5.0 Q
 
-                                                                               7.0 -1.0 -3.0 -5.0  0.0  -7.0 -1.0 R
-                                                                                    4.0  2.0 -3.0 -3.0  -4.0 -2.0 S
-                                                                                         5.0 -1.0 -8.0  -4.0 -3.0 T
-                                                                                              6.0-10.0  -5.0 -4.0 V
-                                                                                                  13.0  -2.0 -9.0 W
+                                                                               7.0 -1.0 -3.0 -5.0   0.0  -7.0 -1.0 R
+                                                                                    4.0  2.0 -3.0  -3.0  -4.0 -2.0 S
+                                                                                         5.0 -1.0  -8.0  -4.0 -3.0 T
+                                                                                              6.0 -10.0  -5.0 -4.0 V
+                                                                                                   13.0  -2.0 -9.0 W
 
-                                                                                                         9.0 -6.0 Y
-                                                                                                              5.0 Z
+                                                                                                          9.0 -6.0 Y
+                                                                                                               5.0 Z


=====================================
debian/changelog
=====================================
@@ -1,3 +1,16 @@
+pftools (3.2.14-1) unstable; urgency=medium
+
+  * New upstream version
+    Closes: #1150954
+  * d/watch: version=5
+  * Standards-Version: 4.7.4 (routine-update)
+  * Reflow Uploaders field (cme)
+  * Reformat the Last-Update date as ISO YYYY-MM-DD.
+  * Build-Depends: dh-sequence-single-binary
+  * Fix build with debhelper compat 14
+
+ -- Andreas Tille <tille at debian.org>  Wed, 11 Nov 2026 21:58:57 +0100
+
 pftools (3.2.12-3) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -1,25 +1,29 @@
 Source: pftools
+Standards-Version: 4.7.4
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
-Uploaders: Andreas Tille <tille at debian.org>
+Uploaders:
+ Andreas Tille <tille at debian.org>,
 Section: science
-Build-Depends: debhelper-compat (= 13),
-               gfortran,
-               cmake,
-               libfile-slurp-perl,
-               libbz2-dev,
-               libreadline-dev,
-               libpcre2-dev,
-               zlib1g-dev
-Standards-Version: 4.7.3
+Build-Depends:
+ debhelper-compat (= 14),
+ dh-sequence-single-binary,
+ cmake,
+ gfortran,
+ libbz2-dev,
+ libfile-slurp-perl,
+ libpcre2-dev,
+ libreadline-dev,
+ zlib1g-dev,
 Vcs-Browser: https://salsa.debian.org/med-team/pftools
 Vcs-Git: https://salsa.debian.org/med-team/pftools.git
 Homepage: https://github.com/sib-swiss/pftools3
 
 Package: pftools
 Architecture: any-amd64
-Depends: ${shlibs:Depends},
-         ${misc:Depends},
-         libfile-slurp-perl
+Depends:
+ libfile-slurp-perl,
+ ${misc:Depends},
+ ${shlibs:Depends},
 Description: build and search protein and DNA generalized profiles
  The pftools package contains all the software necessary to build protein
  and DNA generalized profiles and use them to scan and align sequences,


=====================================
debian/manpages deleted
=====================================
@@ -1 +0,0 @@
-debian/*.1


=====================================
debian/patches/fix_perl_interpreter.patch
=====================================
@@ -1,5 +1,5 @@
 Author: Andreas Tille <tille at debian.org>, Nilesh Patra <npatra974 at gmail.com>
-Last-Update: Fri, 18 Dec 2020 13:33:50 +0530
+Last-Update: 2020-12-18
 Description: Fix interpreter of perl script to fix build time test
 
 --- a/src/Perl/sort_fasta.pl


=====================================
debian/docs → debian/pftools.docs
=====================================
@@ -2,3 +2,4 @@ debian/README.test
 debian/tests/run-unit-test
 README*
 doc/profile.txt
+usr/share/doc/*.pdf


=====================================
debian/pftools.install
=====================================
@@ -0,0 +1 @@
+usr/bin


=====================================
debian/pftools.manpages
=====================================
@@ -0,0 +1,3 @@
+debian/*.1
+debian/tmp/usr/share/man/man1/*.1
+debian/tmp/usr/share/man/man5/*.5


=====================================
debian/rules
=====================================
@@ -16,20 +16,22 @@ override_dh_auto_configure:
 override_dh_auto_install:
 	dh_auto_install
 	# Avoid name spacing conflict with htop and consequently also rename gtop
-	mv debian/$(DEB_SOURCE)/usr/bin/gtop debian/$(DEB_SOURCE)/usr/bin/pfgtop
-	mv debian/$(DEB_SOURCE)/usr/bin/htop debian/$(DEB_SOURCE)/usr/bin/pfhtop
+	mv debian/tmp/usr/bin/gtop debian/tmp/usr/bin/pfgtop
+	mv debian/tmp/usr/bin/htop debian/tmp/usr/bin/pfhtop
 
 override_dh_installexamples:
 	dh_installexamples
-	cp -a debian/pftools/usr/share/examples/* debian/pftools/usr/share/doc/pftools/examples/
-	rm -rf debian/pftools/usr/share/data/ debian/pftools/usr/share/examples/
+	cp -a debian/tmp/usr/share/examples/* debian/$(DEB_SOURCE)/usr/share/doc/pftools/examples/
+	rm -rf debian/tmp/usr/share/data/ debian/tmp/usr/share/examples/
 
 override_dh_installman:
+	mv debian/tmp/usr/share/man/man1/gtop.1 debian/tmp/usr/share/man/man1/pfgtop.1
+	mv debian/tmp/usr/share/man/man1/htop.1 debian/tmp/usr/share/man/man1/pfhtop.1
 	dh_installman
-	mv debian/$(DEB_SOURCE)/usr/share/man/man1/gtop.1 debian/$(DEB_SOURCE)/usr/share/man/man1/pfgtop.1
-	mv debian/$(DEB_SOURCE)/usr/share/man/man1/htop.1 debian/$(DEB_SOURCE)/usr/share/man/man1/pfhtop.1
-	mv debian/$(DEB_SOURCE)/usr/share/doc/*.pdf debian/$(DEB_SOURCE)/usr/share/doc/${DEB_SOURCE}/
-	rm -f debian/$(DEB_SOURCE)/usr/share/doc/*.txt debian/${DEB_SOURCE}/usr/ChangeLog debian/${DEB_SOURCE}/usr/README* debian/${DEB_SOURCE}/usr/LICENSE
+
+override_dh_installdocs:
+	rm -f debian/tmp/usr/share/doc/*.txt debian/tmp/usr/ChangeLog debian/tmp/usr/README* debian/tmp/usr/LICENSE
+	dh_installdocs
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))


=====================================
debian/watch
=====================================
@@ -1,4 +1,4 @@
-version=4
+Version: 5
 
-opts="filenamemangle=s%(?:.*?)?v(\d[\d.]*)\.tar\.gz%@PACKAGE at -$1.tar.gz%" \
-   https://github.com/sib-swiss/pftools3/tags .*/v?@ANY_VERSION@\.tar\.gz
+Template: Github
+Dist: https://github.com/sib-swiss/pftools3


=====================================
src/C/utils/output.c
=====================================
@@ -64,7 +64,7 @@ void PrintTSV(const struct Profile * const prf, const char * * const AlignedSequ
     while ( *cptr != ';' && *cptr != '\0') ++cptr;
     *cptr = '\0';
 
-    char * ac  = calloc(strlen(prf->AC_Number),sizeof(char));
+    char * ac  = calloc(1+strlen(prf->AC_Number),sizeof(char));
     strcpy(ac,prf->AC_Number);
     cptr = ac;
     while ( *cptr != ';' && *cptr != '\0' ) ++cptr;


=====================================
src/Fortran/wrprf.f
=====================================
@@ -255,23 +255,40 @@ C      Write(CPAR,'(''LENGTH='',I6,'';'')') LPRF
          JB=JB+JP+1
 
 * - paramaters
-         
+
+         ! KNOP = number of RNOP values we need to process for this I1
          KNOP=JNOP(MNOR(I1))
-         JP=0
+         ! JP = offset into CPAR (index where the next append begins)
+         JP=0 
+         ! loop over parameter index I2 = 1..KNOP
          Do  22 I2=1,KNOP
-            If(ABS(RNOP(I2,I1)).LE.10.0
+            ! Choose how to format RNOP(I2,I1) into CHRP(I2)
+            ! Note: in Fortran .AND. has higher precedence than .OR.
+            ! if (|value| <= 100 and |value| > 1e-4) or
+            ! value == 0.0 (exact)
+            ! => write fixed-point: width 12, 7 decimals
+            ! else
+            ! => write explicit format and 14 ≤ 16 → safe
+            If(ABS(RNOP(I2,I1)).LE.100.0
      *         .AND.ABS(RNOP(I2,I1)).GT.0.0001
      *         .OR.RNOP(I2,I1).EQ.0.0) then
-               Write(CHRP(I2),'(F10.7)') RNOP(I2,I1)
-            Else 
-               Write(CHRP(I2),*) RNOP(I2,I1)
+               Write(CHRP(I2),'(F12.7)') RNOP(I2,I1)
+            Else
+               ! was: Write(CHRP(I2),*) RNOP(I2,I1)
+               Write(CHRP(I2),'(1PE14.6)') RNOP(I2,I1)
             End if
+            ! Append "R<I2>=<formatted>; " into CPAR, starting at JP+1 (next free spot)
             Write(CPAR(JP+1:),*)'R',I2,'=',CHRP(I2),'; '
+            ! Recompute JP as position after the last non-blank in CPAR
             JP=Lblnk(CPAR)+1
  22      Continue
+         ! Post-process CPAR with function slpar, given its length JP
          Call slpar(CPAR,JP)
+         ! Ensure there is space in CBLK (buffer overflow check) before copying CPAR into it
          If(JB+JP+1.GT.LBUF) Go to 900
+         ! Copy CPAR(1:JP) into CBLK, starting at CBLK(JB+2)
          CBLK(JB+2:JB+JP+1)=CPAR(1:JP)
+         ! Advance buffer pointer JB by the number of characters just appended (JP)
          JB=JB+JP
 
 * - text



View it on GitLab: https://salsa.debian.org/med-team/pftools/-/compare/ac32a7277479deab21c1fe66b14e24454b8d7f48...e27d1201f6add597fd15a8c2c18b2ea74fcdfe70

-- 
View it on GitLab: https://salsa.debian.org/med-team/pftools/-/compare/ac32a7277479deab21c1fe66b14e24454b8d7f48...e27d1201f6add597fd15a8c2c18b2ea74fcdfe70
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261112/1722e1fa/attachment-0001.htm>


More information about the debian-med-commit mailing list