Skip to content

feat: --validate-input command line option#3728

Merged
MelReyCG merged 16 commits intodevelopfrom
feature/rey/no-sim-params
Sep 1, 2025
Merged

feat: --validate-input command line option#3728
MelReyCG merged 16 commits intodevelopfrom
feature/rey/no-sim-params

Conversation

@MelReyCG
Copy link
Copy Markdown
Contributor

@MelReyCG MelReyCG commented Jul 15, 2025

This PR aims to allow to launch GEOS to only run the loading phase, skipping any simulation and validating that GEOS can load a case without encountering any issue.

To do so, here is the proposed new command line option:

    -v, --validate-input, \t only do the loading phase, and not actual simulation. Useful to validate 'input'.

It also updates documentation accordingly.


This PR also fix the GEOS behavior when no command line argument are given (GEOS would throw errors and stacktrace, contrary to what is stated in the current documentation), and update the current "empty command line params" output in our docs.

@dkachuma
Copy link
Copy Markdown
Contributor

This is a very useful feature. Can we add it somewhere in QuickStart.rst.

@MelReyCG
Copy link
Copy Markdown
Contributor Author

@dkachuma
Done, since I passed by I also updated the GEOS behaviour & documentation for when an user does not give any command line arguments.

@MelReyCG MelReyCG self-assigned this Jul 17, 2025
@MelReyCG MelReyCG added ci: run CUDA builds Allows to triggers (costly) CUDA jobs flag: ready for review ci: run integrated tests Allows to run the integrated tests in GEOS CI labels Jul 23, 2025
@MelReyCG MelReyCG changed the title validate-input command line option feat: validate-input command line option Jul 23, 2025
@MelReyCG MelReyCG requested a review from arng40 July 24, 2025 08:05
Copy link
Copy Markdown
Contributor

@jhuang2601 jhuang2601 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature is incredibly helpful.
Thanks for making it available.

@MelReyCG MelReyCG changed the title feat: validate-input command line option feat: --validate-input command line option Aug 18, 2025
Copy link
Copy Markdown
Member

@rrsettgast rrsettgast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelReyCG I am missing where geos would terminate if onlyValidateInput==true. Can you point it out to me?

Comment on lines +180 to +185
if( getCommandLineOptions().onlyValidateInput )
{
m_state = State::COMPLETED;
GEOS_LOG( "Input validation completed, terminating GEOS..." );
}
else if( !getProblemManager().runSimulation() )
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, here it is ^
We set the GEOS state to completed and prevent it to run the simulation l.185. I can avoid using else if here if that is not clear.

@paveltomin paveltomin requested a review from rrsettgast August 22, 2025 13:39
@MelReyCG MelReyCG merged commit b0098a1 into develop Sep 1, 2025
46 of 50 checks passed
@MelReyCG MelReyCG deleted the feature/rey/no-sim-params branch September 1, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants