From 3471b1e0b4527f601ead97822ab97630813e6d9c Mon Sep 17 00:00:00 2001 From: HugoMVale <57530119+HugoMVale@users.noreply.github.com> Date: Sat, 3 Aug 2024 20:03:24 +0200 Subject: [PATCH] update default value for lunrpt and lunerr --- c/odrpack_capi.f90 | 20 ++++++++++++++++---- original/Doc/guide.pdf | Bin 546563 -> 542658 bytes src/odrpack.f90 | 18 ++++++++++++------ 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/c/odrpack_capi.f90 b/c/odrpack_capi.f90 index 5e2b716..8698fab 100644 --- a/c/odrpack_capi.f90 +++ b/c/odrpack_capi.f90 @@ -238,9 +238,15 @@ subroutine odr_medium_c( & integer(c_int), intent(in), optional :: iprint !! Print control variable. integer(c_int), intent(in), optional :: lunerr - !! Logical unit number for error messages. + !! Logical unit number for error messages. Available options are: + !! 0 => no output. + !! 6 => output to standard error. + !! other => output to logical unit number `lunerr`. integer(c_int), intent(in), optional :: lunrpt - !! Logical unit number for computation reports. + !! Logical unit number for computation reports. Available options are: + !! 0 => no output. + !! 6 => output to standard error. + !! other => output to logical unit number `lunrpt`. integer(c_int), intent(out), optional :: info !! Logical unit number for computation reports. @@ -348,9 +354,15 @@ subroutine odr_long_c( & integer(c_int), intent(in), optional :: iprint !! Print control variable. integer(c_int), intent(in), optional :: lunerr - !! Logical unit number for error messages. + !! Logical unit number for error messages. Available options are: + !! 0 => no output. + !! 6 => output to standard error. + !! other => output to logical unit number `lunerr`. integer(c_int), intent(in), optional :: lunrpt - !! Logical unit number for computation reports. + !! Logical unit number for computation reports. Available options are: + !! 0 => no output. + !! 6 => output to standard error. + !! other => output to logical unit number `lunrpt`. integer(c_int), intent(out), optional :: info !! Variable designating why the computations were stopped. diff --git a/original/Doc/guide.pdf b/original/Doc/guide.pdf index bae6d4c0fdf54e927ee0012c4d65f151f2c0c0d1..463cf2c5087534837372fc8c4875b0bb63c20a27 100644 GIT binary patch delta 7296 zcmd5=jk8r%6^EFM}7@#?cT2PIKqHod(^{Szw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;vwqbBrRBtKuVU`0sN2xigP)C81hK?QtD6- zHwZnSj2v)srBOIswFV27c_9-8)q(NJc~EfMavbyllKZFBZ2)vTz(r2ZQu2%gbc{6P zPy#m+lq?V3&{~6A%Gkkxji7|Ekw|G0DZ~qaFBjVM4EiMuS{6-$hEUHDs=|kYN?JbB zKsb3Mqrf8MwnI@cJ(HTeC;$zg-DKI7qIpJIM2d6_v~&_XRpEFjw$y@(I2J}GS~!?) zi3f*EYc1j6=M5|^zdIJnI?2gJh8%SDa;>2LBg*zXu^ zKr(V42OKXq8Za4Xz~mb<&{k;SV9X-Nv6!@+Ku3r64D4S^HJV=CLdeQ%P|ypS4x?p> z2BBop#=*c)i;ilonUt;8j}$F$yl5!<29@wK zeAU%@8S=i&w}Fn6)-j@Hpni}xs4Y13SsOj7H3O}?_PgNP{A@WPO3ZQ`j{=^IA#{iG z)4>o$YZGWUNa2#JzNu1+8d9k?PAg*2B#yq8YwnKfajkdZjB>Xiq2Fl1sV^FSSEel{ zsnHLh-JlxOnCi9Qz{BOjP+AjJsAQpK*PyclhVZ}KS5V2T#Sj7pEm*th!-$^|rn%|c zj2ulmk)uYjqo`5Px?rv>RA(-PGX_5#W9iY9(;Y(*NS-N6LV31)a_-26f PjA18hYnKVGhMoQo^dN80 diff --git a/src/odrpack.f90 b/src/odrpack.f90 index 6415bc3..f5571b0 100644 --- a/src/odrpack.f90 +++ b/src/odrpack.f90 @@ -118,9 +118,15 @@ impure subroutine odr & integer, intent(in), optional :: iprint !! Print control variable. integer, intent(in), optional :: lunerr - !! Logical unit number for error messages. + !! Logical unit number for error messages. Available options are: + !! 0 => no output. + !! 6 => output to standard error. + !! other => output to logical unit number `lunerr`. integer, intent(in), optional :: lunrpt - !! Logical unit number for computation reports. + !! Logical unit number for computation reports. Available options are: + !! 0 => no output. + !! 6 => output to standard error. + !! other => output to logical unit number `lunrpt`. real(wp), intent(in), optional :: stpb(:) !! Relative step for computing finite difference derivatives with respect to `beta`. !! `Shape: (np)`. @@ -176,8 +182,8 @@ impure subroutine odr & ldscld = 1 ldstpd = 1 iprint_ = -1 - lunerr_ = 0 - lunrpt_ = 0 + lunerr_ = 6 + lunrpt_ = 6 maxit_ = -1 ndigit_ = -1 partol_ = negone @@ -194,14 +200,14 @@ impure subroutine odr & if (present(lunrpt)) then lunrpt_ = lunrpt end if - if (lunrpt_ == 0) then + if (lunrpt_ == 6) then lunrpt_ = output_unit end if if (present(lunerr)) then lunerr_ = lunerr end if - if (lunerr_ == 0) then + if (lunerr_ == 6) then lunerr_ = error_unit end if