Skip to content

Commit 6b74e72

Browse files
committed
fix bug in sifdecoder script
update unavailable parameter setting warning
1 parent 16a01d5 commit 6b74e72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/sifdecoder

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# sifdecoder: script to decode a sif file
44
#
55
# N. Gould, D. Orban & Ph. Toint, November 7th, 2000
6-
# This version September 28th, 2025
6+
# This version September 29th, 2025
77

88
display_short_help() {
99
echo ' Use: sifdecoder [-A architecture] [-sp] [-qp] [-h,--help] [-c] [-f]'
@@ -272,12 +272,12 @@ fi
272272
#fi
273273

274274
problemLoc=${PROBDIR}/${PROBNAME}.SIF
275-
[[ (! -e $problemLoc) && ("$PROBDIR" == ".") ]] && probDirNotGiven='true' || probDirNotGiven='false'
275+
[[ (! -e $problemLoc) && ("$PROBDIR" == "$PWD") ]] && probDirNotGiven='true' || probDirNotGiven='false'
276276

277277
# Specify correct path for problemLoc
278278

279279
let lookInMastSif=0
280-
if [[ (! -e "$problemLoc") && ("$PROBDIR" == ".") && (${MASTSIF+set} == 'set') ]]; then
280+
if [[ (! -e "$problemLoc") && ("$PROBDIR" == "$PWD") && (${MASTSIF+set} == 'set') ]]; then
281281
let lookInMastSif=1
282282
problemLoc=${MASTSIF}/${PROBNAME}.SIF
283283
fi

src/decode/sifdecoder_standalone.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ SUBROUTINE SIFDECODER_preprocess( in_sif, out_sif, params, force, &
581581
END IF
582582
DO j = 1, params%n_params
583583
IF ( params%match( j ) == - 1 ) WRITE( out, &
584-
"( ' Failed to set ', A, ' to ', A, ' -- skipping' )" ) &
584+
"( ' WARNING: Failed to set ', A, ' to ', A, ' -- skipping' )" )&
585585
TRIM( params%var( j ) ), TRIM( params%val( j ) )
586586
END DO
587587
END IF

0 commit comments

Comments
 (0)