Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add application block #26474

Merged
merged 12 commits into from Feb 6, 2024
Merged

Conversation

MengnanLi91
Copy link
Contributor

This PR add a [Application] block in the input file and parse the application type. The MOOSE app will only be created if the app type in the input file is consistent with the registered MOOSE app. Related issue is mentioned in #23741

Design

A new [Application] block is added in the input file and parsed before the MOOSE app is created. The [Application] block is implemented via Action with a parameter named 'type'.

Impact

It will be more explicit which app the input file belongs to and very useful for multi-app simulations

@moosebuild
Copy link
Contributor

moosebuild commented Jan 10, 2024

Job Documentation on 69f4fbc wanted to post the following:

View the site here

This comment will be updated on new commits.

@moosebuild
Copy link
Contributor

moosebuild commented Jan 16, 2024

Job Coverage on 69f4fbc wanted to post the following:

Framework coverage

19aa8b #26474 69f4fb
Total Total +/- New
Rate 85.21% 85.22% +0.00% 93.55%
Hits 99627 99683 +56 58
Misses 17291 17294 +3 4

Diff coverage report

Full coverage report

Modules coverage

Coverage did not change

Full coverage reports

Reports

This comment will be updated on new commits.

@moosebuild
Copy link
Contributor

Job OpenMPI on 258b7f3 : invalidated by @MengnanLi91

richards/test:rogers_stallybrass_clements.rsc02 seems irrelevant failure

Copy link
Member

@cticenhour cticenhour left a comment

Choose a reason for hiding this comment

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

After some struggle, I found the issue. I always forget this, but test spec detail fields get rendered just like any other text. This means the [Application] syntax gets rendered as a link, but fails because it's an invalid one.

See the suggested changes below!

test/tests/multiapps/application_block_multiapps/tests Outdated Show resolved Hide resolved
test/tests/multiapps/application_block_multiapps/tests Outdated Show resolved Hide resolved
@MengnanLi91 MengnanLi91 marked this pull request as ready for review January 22, 2024 04:21
@MengnanLi91
Copy link
Contributor Author

Griffin needs a patch to adapt the changes in this PR. Besides that, the PR is ready for review

Copy link
Contributor

@GiudGiud GiudGiud left a comment

Choose a reason for hiding this comment

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

mostly cosmetics

framework/include/actions/CreateApplicationBlockAction.h Outdated Show resolved Hide resolved
framework/src/actions/CreateApplicationBlockAction.C Outdated Show resolved Hide resolved
test/tests/multiapps/application_block_multiapps/tests Outdated Show resolved Hide resolved
test/tests/multiapps/application_block_multiapps/tests Outdated Show resolved Hide resolved
modules/combined/test/tests/application_block_check/tests Outdated Show resolved Hide resolved
framework/src/multiapps/MultiApp.C Outdated Show resolved Hide resolved
framework/src/multiapps/MultiApp.C Show resolved Hide resolved
framework/include/actions/CreateApplicationBlockAction.h Outdated Show resolved Hide resolved
framework/include/base/MooseApp.h Outdated Show resolved Hide resolved
framework/include/base/MooseApp.h Outdated Show resolved Hide resolved
framework/include/parser/Parser.h Outdated Show resolved Hide resolved
framework/src/multiapps/MultiApp.C Show resolved Hide resolved
framework/doc/content/syntax/Application/index.md Outdated Show resolved Hide resolved
framework/doc/content/syntax/Application/index.md Outdated Show resolved Hide resolved
framework/include/parser/Parser.h Outdated Show resolved Hide resolved
framework/include/parser/Parser.h Outdated Show resolved Hide resolved
framework/src/base/AppFactory.C Outdated Show resolved Hide resolved
framework/src/multiapps/MultiApp.C Show resolved Hide resolved
@moosebuild
Copy link
Contributor

Job Precheck on 4c2d0ea wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/docs/PRs/26474/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format 796cb8aa68a15d61eb82eb353bb6582b01c6634f

@MengnanLi91 MengnanLi91 force-pushed the Add_application_block branch 2 times, most recently from 28dcbd5 to d9357e1 Compare January 29, 2024 21:56
MengnanLi91 added a commit to MengnanLi91/moose that referenced this pull request Jan 29, 2024
MengnanLi91 and others added 6 commits February 3, 2024 08:35
Co-Authored-By: Casey Icenhour <casey.icenhour@inl.gov>
Co-Authored-By: Guillaume Giudicelli <guillaume.giudicelli@gmail.com>

Address review: cosmetic changes

Co-Authored-By: Guillaume Giudicelli <guillaume.giudicelli@gmail.com>
Co-Authored-By: Logan Harbour <loganhharbour@gmail.com>
This means we shouldn't have to break griffin
Copy link
Member

@cticenhour cticenhour left a comment

Choose a reason for hiding this comment

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

Please add an entry on this to the news template for February in a follow-up PR!

Copy link
Contributor

@GiudGiud GiudGiud left a comment

Choose a reason for hiding this comment

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

just that doco line

Co-Authored-By: Guillaume Giudicelli <guillaume.giudicelli@gmail.com>
@moosebuild
Copy link
Contributor

Job OpenMPI on 69f4fbc : invalidated by @MengnanLi91

postprocessors/interface_diffusive_flux.average/fe FAILED (ERRMSG)

@MengnanLi91 MengnanLi91 merged commit 096ce97 into idaholab:next Feb 6, 2024
49 checks passed
schakrabortygithub pushed a commit to schakrabortygithub/moose that referenced this pull request Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

5 participants