Skip to content

Conversation

@najlkin
Copy link
Contributor

@najlkin najlkin commented May 27, 2025

An optional small addition to #336 introducing non-persistent mode of server. It means the server is terminated after all visualization windows are closed. This is useful when you have a single application keeping streams open until it ends and a headless server, which should stop after the data are processed.
For example, when the pause is commented out in ex9.cpp and the visualization output is changed to:

sout << "solution\n" << mesh << u << "\n"
     << "screenshot " << "ex9_" << ti << ".png"
     << endl;

The example can be run like this:

./glvis -hl -no-pr &> log.txt &
./ex9 <parameters...>

producing a screenshot for every visualization step and closing the server afterwards.

@najlkin najlkin requested a review from tzanio May 27, 2025 17:14
@najlkin najlkin self-assigned this May 27, 2025
@najlkin najlkin merged commit 3293787 into egl-headless May 27, 2025
10 checks passed
@najlkin najlkin deleted the egl-headless-nopr branch May 27, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants