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

Fullapp reentering fix #372

Merged
merged 2 commits into from
Oct 31, 2020
Merged

Conversation

YaqiWang
Copy link
Contributor

@YaqiWang YaqiWang commented Feb 8, 2019

A fix for a MOOSE PR idaholab/moose#12773. That PR allows a wrapped transient run with FullSolveMultiApp to reenter properly. I saw with that PR, MyTRIM gets executed twice instead of once before. I think this is the right behavior but need you to confirm. Tag @snschune and @dschwen .

I did not see MOOSE submodule in magpie, so cannot do a submodule update along this PR. For the same reason, I marked this PR as WIP. I will remove WIP after the PR in MOOSE gets merged. Thanks.

@YaqiWang
Copy link
Contributor Author

YaqiWang commented Feb 8, 2019

FYI, this is the screen output before:

Executing MultiApps on NONLINEAR
radiation_damage_app0: 
radiation_damage_app0: Time Step 1, time = 1
radiation_damage_app0:                 dt = 1
radiation_damage_app0: 
radiation_damage_app0: 
radiation_damage_app0: MyTRIM: Running 52 recoils.
radiation_damage_app0: Recoil rate scaling factor is 1
radiation_damage_app0: Sampled number of recoils: 52
radiation_damage_app0: Result scaling factor: 1
radiation_damage_app0:  0 Nonlinear |R| = 0.000000e+00
radiation_damage_app0:  Solve Converged!
radiation_damage_app0: 
radiation_damage_app0: Postprocessor Values:
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: | time           | int_C_pp       | int_O_pp       | int_U_pp       | n_pkas         | vac_C_pp       | vac_O_pp       | vac_U_pp       |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |
radiation_damage_app0: |   1.000000e+00 |   4.231060e+05 |   9.136770e+05 |   5.462510e+05 |   0.000000e+00 |   4.223770e+05 |   9.144060e+05 |   5.462480e+05 |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: 
Finished Executing MultiApps on NONLINEAR


No Transfers on NONLINEAR To MultiApps

      0 Linear |R| = 3.000000e+00
      1 Linear |R| = 5.253504e-01
      2 Linear |R| = 1.161749e-01
      3 Linear |R| = 2.968344e-02
      4 Linear |R| = 5.048029e-03
      5 Linear |R| = 5.622536e-04
      6 Linear |R| = 6.094379e-05
      7 Linear |R| = 4.070143e-06
 1 Nonlinear |R| = 4.070143e-06

Starting Transfers on NONLINEAR To MultiApps
Transfers on NONLINEAR Are Finished


Executing MultiApps on NONLINEAR
Finished Executing MultiApps on NONLINEAR


No Transfers on NONLINEAR To MultiApps

      0 Linear |R| = 4.070143e-06
      1 Linear |R| = 4.129165e-07
      2 Linear |R| = 5.648132e-08
      3 Linear |R| = 1.881637e-08
      4 Linear |R| = 3.168601e-09
      5 Linear |R| = 4.088525e-10
      6 Linear |R| = 5.330095e-11
      7 Linear |R| = 5.226867e-12
 2 Nonlinear |R| = 5.226734e-12
 Solve Converged!

You can notice that there is nothing in the second multiapp run.
And after

Executing MultiApps on NONLINEAR
radiation_damage_app0: 
radiation_damage_app0: Postprocessor Values:
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: | time           | int_C_pp       | int_O_pp       | int_U_pp       | n_pkas         | vac_C_pp       | vac_O_pp       | vac_U_pp       |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: 
radiation_damage_app0: 
radiation_damage_app0: Time Step 1, time = 1
radiation_damage_app0:                 dt = 1
radiation_damage_app0: 
radiation_damage_app0: 
radiation_damage_app0: MyTRIM: Running 52 recoils.
radiation_damage_app0: Recoil rate scaling factor is 1
radiation_damage_app0: Sampled number of recoils: 52
radiation_damage_app0: Result scaling factor: 1
radiation_damage_app0:  0 Nonlinear |R| = 0.000000e+00
radiation_damage_app0:  Solve Converged!
radiation_damage_app0: 
radiation_damage_app0: Postprocessor Values:
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: | time           | int_C_pp       | int_O_pp       | int_U_pp       | n_pkas         | vac_C_pp       | vac_O_pp       | vac_U_pp       |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |   0.000000e+00 |
radiation_damage_app0: |   1.000000e+00 |   4.231060e+05 |   9.136770e+05 |   5.462510e+05 |   0.000000e+00 |   4.223770e+05 |   9.144060e+05 |   5.462480e+05 |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: 
Finished Executing MultiApps on NONLINEAR


No Transfers on NONLINEAR To MultiApps

      0 Linear |R| = 3.000000e+00
      1 Linear |R| = 5.253504e-01
      2 Linear |R| = 1.161749e-01
      3 Linear |R| = 2.968344e-02
      4 Linear |R| = 5.048029e-03
      5 Linear |R| = 5.622536e-04
      6 Linear |R| = 6.094379e-05
      7 Linear |R| = 4.070143e-06
 1 Nonlinear |R| = 4.070143e-06

Starting Transfers on NONLINEAR To MultiApps
Transfers on NONLINEAR Are Finished


Executing MultiApps on NONLINEAR
radiation_damage_app0: 
radiation_damage_app0: Postprocessor Values:
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: | time           | int_C_pp       | int_O_pp       | int_U_pp       | n_pkas         | vac_C_pp       | vac_O_pp       | vac_U_pp       |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: |   0.000000e+00 |   4.231060e+05 |   9.136770e+05 |   5.462510e+05 |   0.000000e+00 |   4.223770e+05 |   9.144060e+05 |   5.462480e+05 |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: 
radiation_damage_app0: 
radiation_damage_app0: Time Step 1, time = 1
radiation_damage_app0:                 dt = 1
radiation_damage_app0: 
radiation_damage_app0: 
radiation_damage_app0: MyTRIM: Running 32 recoils.
radiation_damage_app0: Recoil rate scaling factor is 1
radiation_damage_app0: Sampled number of recoils: 32
radiation_damage_app0: Result scaling factor: 1
radiation_damage_app0:  0 Nonlinear |R| = 0.000000e+00
radiation_damage_app0:  Solve Converged!
radiation_damage_app0: 
radiation_damage_app0: Postprocessor Values:
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: | time           | int_C_pp       | int_O_pp       | int_U_pp       | n_pkas         | vac_C_pp       | vac_O_pp       | vac_U_pp       |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: |   0.000000e+00 |   4.231060e+05 |   9.136770e+05 |   5.462510e+05 |   0.000000e+00 |   4.223770e+05 |   9.144060e+05 |   5.462480e+05 |
radiation_damage_app0: |   1.000000e+00 |   3.573110e+05 |   3.266300e+05 |   1.974080e+05 |   0.000000e+00 |   3.568680e+05 |   3.270730e+05 |   1.974070e+05 |
radiation_damage_app0: +----------------+----------------+----------------+----------------+----------------+----------------+----------------+----------------+
radiation_damage_app0: 
Finished Executing MultiApps on NONLINEAR


No Transfers on NONLINEAR To MultiApps

      0 Linear |R| = 4.070143e-06
      1 Linear |R| = 4.129165e-07
      2 Linear |R| = 5.648132e-08
      3 Linear |R| = 1.881637e-08
      4 Linear |R| = 3.168601e-09
      5 Linear |R| = 4.088525e-10
      6 Linear |R| = 5.330095e-11
      7 Linear |R| = 5.226867e-12
 2 Nonlinear |R| = 5.226734e-12
 Solve Converged!

@@ -136,7 +136,6 @@
[UserObjects]
[./neutronics_fission_generator]
type = PKAFissionFragmentNeutronics
relative_density = 1
Copy link
Member

Choose a reason for hiding this comment

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

Why is this change here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not a valid parameter of PKAFissionFragmentNeutronics. We have a warning during run-time saying a unused param is detected.

@YaqiWang
Copy link
Contributor Author

I think this is ready for merging. Be warned that @permcody 's PR idaholab/moose#12771 breaks Magpie.

@YaqiWang YaqiWang changed the title WIP: Fullapp reentering fix Fullapp reentering fix Feb 14, 2019
@dschwen
Copy link
Member

dschwen commented Feb 14, 2019

ERROR: Your patch does not contain a valid ticket reference! (i.e. #1234) M

@YaqiWang YaqiWang force-pushed the fullapp_reentering_fix branch from 8dc6f4b to 8bdc2e5 Compare February 14, 2019 22:36
@YaqiWang
Copy link
Contributor Author

This closes #377.

@moosebuild
Copy link

Job Precheck on 8bdc2e5 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 http://mooseframework.inl.gov/magpie/docs/PRs/372/style.patch | git apply -v

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

git clang-format 8bd81b069d10c4f78dfd40eff53330e3c2dfd657

@YaqiWang YaqiWang force-pushed the fullapp_reentering_fix branch from 8bdc2e5 to 218236f Compare February 14, 2019 22:42
@YaqiWang YaqiWang force-pushed the fullapp_reentering_fix branch from 218236f to 69362a8 Compare February 14, 2019 22:46
@YaqiWang
Copy link
Contributor Author

@dschwen I did not see a moose submodule, so the question is which moose is the test against?

@dschwen
Copy link
Member

dschwen commented Jul 1, 2019

There now is a MOOSE submodule.

@moosebuild
Copy link

Job Test on 69362a8 : invalidated by @dschwen

Retesting

@moosebuild
Copy link

Job Test on 69362a8 wanted to post the following:

View the site here

This comment will be updated on new commits.

@dschwen
Copy link
Member

dschwen commented Jun 8, 2020

@YaqiWang this is over a year old. I this still needed?

@YaqiWang
Copy link
Contributor Author

YaqiWang commented Jun 8, 2020

I assume if MOOSE is up to date, that test will fail. Is that the case? Geese, I thought this had been merged long ago...

@moosebuild
Copy link

All jobs on 69362a8 : invalidated by @dschwen

1 similar comment
@moosebuild
Copy link

All jobs on 69362a8 : invalidated by @dschwen

@dschwen
Copy link
Member

dschwen commented Oct 27, 2020

App test Mammoth is failing with an unrelated failure. I don't think I understand your last comment @YaqiWang, are apptests supposed to fail without this PR?

@YaqiWang
Copy link
Contributor Author

This patch is needed for a change in MOOSE. So if your MOOSE is up to date, the regolded test in this PR will fail without this PR. You can verify this. This PR is supposed to fix that failure. I am not expecting an app test failure. I do not have the access to the test results.

Copy link
Member

@dschwen dschwen left a comment

Choose a reason for hiding this comment

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

F it, I'm meeting this!

@dschwen dschwen merged commit beedbc3 into idaholab:devel Oct 31, 2020
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