Have FVS return valid execution codes?
I was hoping you would be willing to tweak FVS so if it runs properly, it returns a valid exit code (e.g. 0) or, if it has a problem, it returns some other code.
https://www.agileconnection.com/article/overview-linux-exit-codes
We're wrapping FVS in python and it doesn't behave in quite a "standard" way when facing errors. Thanks!
Is "STOP 20" a valid run? I am getting that but not seeing any errors in the .out file. I'm still curious if you might consider switching to "industry standard" exit codes?
Hello,
The FVS stop code is the highest error level encountered for the entire run which may have multiple stands. STOP 20 is most commonly a keyword error. It may be a keyword out of place and not within its necessary block like Database/End, ESTAB/End, Compute/End, a misspelled keyword or maybe a leading blank or could be an invalid parameter on a keyword. Whatever the case, you will find a error message in your main output file. The writing of that error is what sets the stop code for the run.
If you are using a current version of FVS, there will be a FVS_Error table in the output database holding all warnings and errors for the run.
It all depends on what keyword triggered that message and it may have also caused additional keywords to be ignored. I would consider a run with a Stop 20 to be invalid because at the very minimum, at least one parameter or action you intended to be included was not.
Hope this helps.
From: jgrn307 @.> Sent: Thursday, November 14, 2024 2:53 PM To: USDAForestService/ForestVegetationSimulator @.> Cc: Subscribed @.***> Subject: Re: [USDAForestService/ForestVegetationSimulator] Have FVS return valid execution codes? (Issue #36)
Is "STOP 20" a valid run? I am getting that but not seeing any errors in the .out file. I'm still curious if you might consider switching to "industry standard" exit codes?
Reply to this email directly, view it on GitHubhttps://github.com/USDAForestService/ForestVegetationSimulator/issues/36#issuecomment-2477480608, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZVWHW5NWYIGAK2KPWADEI32AULTDAVCNFSM6AAAAABRZ37JMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZXGQ4DANRQHA. You are receiving this because you are subscribed to this thread.Message ID: @.***>
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.