@@ -252,16 +252,13 @@ def setup_keywords():
252252 medium .add_kw ('PROBERADIUS' , 'DBL' , 1.0 )
253253 # A priori compression parameter a
254254 # Valid for: wavelet solvers
255- # Valid values: double strictly greater than 1.0
255+ # Valid values: double greater than 1.0
256256 # Default: 1.25
257257 medium .add_kw ('A' , 'DBL' , 1.25 )
258258 # A priori compression parameter d'
259259 # Valid for: wavelet solvers
260- # Valid values: double strictly less than 2.0 (piecewise constants)
261- # strictly less than 3.0 (piecewise linears)
260+ # Valid values: double greater than 1.0
262261 # Default: 1.25 (PWC) or 2.25 (PWL)
263- # Since the default is solver-dependent it is here set to 0.0 to avoid complaints
264- # about nonexistent section
265262 medium .add_kw ('DPRIME' , 'DBL' , 0.0 )
266263 # A posteriori compression parameter b
267264 # Valid for: wavelet solvers
@@ -494,8 +491,8 @@ def verify_medium(section):
494491 sys .exit (1 )
495492
496493 a = section .get ('A' )
497- if (a .get () <= 1.0 ):
498- print ('A priori compression parameter a has to be strictly greater than 1.0' )
494+ if (a .get () < 1.0 ):
495+ print ('A priori compression parameter a has to be greater than 1.0' )
499496 sys .exit (1 )
500497 dprime = section .get ('DPRIME' )
501498 solver = section .get ('SOLVERTYPE' )
@@ -505,11 +502,6 @@ def verify_medium(section):
505502 elif (solver .get () == 'LINEAR' ):
506503 dprime .set (2.25 )
507504
508- if (dprime .get () >= 3.0 and solver .get () == 'LINEAR' ):
509- print ('A priori compression parameter d\' has to be strictly less than 3.0 for piecewise linears' )
510- elif (dprime .get () >= 2.0 and solver .get () == 'WAVELET' ):
511- print ('A priori compression parameter d\' has to be strictly less than 2.0 for piecewise constants' )
512-
513505 b = section .get ('B' )
514506 if (b .get () >= 1.0 and b .get () <= 0.0 ):
515507 print ('A posteriori compression parameter has to be in ]0.0, 1.0[' )
0 commit comments