Skip to content

Commit

Permalink
Add newsletter entry on main exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Sep 16, 2024
1 parent 023d242 commit 830fd94
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions modules/doc/content/newsletter/2024/2024_09.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,32 @@ for a complete description of all MOOSE changes.

## MOOSE Improvements

### Exit Code Management

The ability was added to allow an application to set its exit code, which can
be seen in `MooseApp::setExitCode()`. This feature was added in order to better
support instances in which you want to run an external process within an application,
as the proper return code from the external process can be captured and
returned via your application.

In order for an application properly return this exit code, a modification is needed
within the `main` function. To do this, modify the `main()` function in `src/main.C`
to look like the following:

```
int
main(int argc, char * argv[])
{
return Moose::main<YourApp>(argc, argv);
}
```

where `YourApp` is the class for your application.

This change should be made as soon as possible as the logic that was changed here
impacts the application command line options `--run` and `--copy-inputs` used for
executing installed MOOSE applications.

## libMesh-level Changes

## PETSc-level Changes
Expand Down

0 comments on commit 830fd94

Please sign in to comment.