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

Fix Level set mark transfer seg fault when initial_steps is set #14909

Open
jiangwen84 opened this issue Mar 16, 2020 · 4 comments
Open

Fix Level set mark transfer seg fault when initial_steps is set #14909

jiangwen84 opened this issue Mar 16, 2020 · 4 comments
Labels
C: Modules P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations.

Comments

@jiangwen84
Copy link
Contributor

Bug Description

LevelSetMeshRefinementTransfer is used to transfer mesh adaptivity information to reinitialization sub app. However, it causes segmentation fault when initial_steps in Adaptivity is used.

Steps to Reproduce

Add initial_steps = 1 in Adaptivity Block in modules/level_set/test/tests/transfers/markers/multi_level/master.i.

Impact

This needs to be fixed if initial_steps is used.

@jiangwen84 jiangwen84 added the T: defect An anomaly, which is anything that deviates from expectations. label Mar 16, 2020
@jiangwen84
Copy link
Contributor Author

@aeslaughter

The back trace is below

  • thread Removed #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    • frame #0: 0x0000000100e828fc libmoose-dbg.0.dylibstd::__1::shared_ptr<MooseApp>::operator->(this=0x0000000000000000) const at memory:3805:56 frame #1: 0x0000000100e8994b libmoose-dbg.0.dylibMultiApp::appProblemBase(this=0x0000000118bd9f58, app=0) at MultiApp.C:564:10
      frame Removed #2: 0x0000000100cad20d libmoose-dbg.0.dylibMultiAppCopyTransfer::execute(this=0x0000000118bdf848) at MultiAppCopyTransfer.C:53:30 frame #3: 0x000000010e5aafe0 liblevel_set-dbg.0.dylibLevelSetMeshRefinementTransfer::execute(this=0x0000000118bdf848) at LevelSetMeshRefinementTransfer.C:69:27
      frame Removed #4: 0x0000000100ace503 libmoose-dbg.0.dylibFEProblemBase::execMultiAppTransfers(this=0x0000000119024818, type=(_raw_name = "COMPUTE_MARKERS", _name = "COMPUTE_MARKERS", _id = 1234), direction=TO_MULTIAPP) at FEProblemBase.C:3973:17 frame #5: 0x000000010e5c9944 liblevel_set-dbg.0.dylibLevelSetProblem::computeMarkers(this=0x0000000119024818) at LevelSetProblem.C:35:3
      frame Removed #6: 0x0000000100adcfd0 libmoose-dbg.0.dylibFEProblemBase::initialAdaptMesh(this=0x0000000119024818) at FEProblemBase.C:5668:7 frame #7: 0x0000000100aa2713 libmoose-dbg.0.dylibFEProblemBase::initialSetup(this=0x0000000119024818) at FEProblemBase.C:822:5
      frame Removed #8: 0x000000010063849f libmoose-dbg.0.dylibTransient::init(this=0x0000000119033818) at Transient.C:229:12 frame #9: 0x00000001016cf027 libmoose-dbg.0.dylibMooseApp::executeExecutioner(this=0x0000000139807618) at MooseApp.C:925:19
      frame Removed #10: 0x00000001016cff9f libmoose-dbg.0.dylibMooseApp::run(this=0x0000000139807618) at MooseApp.C:1054:5 frame #11: 0x00000001000029f6 combined-dbgmain(argc=3, argv=0x00007ffeefbfe080) at main.C:41:8

@jiangwen84
Copy link
Contributor Author

jiangwen84 commented Mar 16, 2020

during initialSetup, app has not been created yet.

@jiangwen84
Copy link
Contributor Author

@aeslaughter do you have any suggestion to fix this?

@aeslaughter
Copy link
Contributor

I am thinking that there might need to be another execute flag that causes the sub-application mesh to perform the same operation when it is created. I am not sure what that will look like in practice.

@permcody permcody added C: Modules P: normal A defect affecting operation with a low possibility of significantly affects. labels Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Modules P: normal A defect affecting operation with a low possibility of significantly affects. T: defect An anomaly, which is anything that deviates from expectations.
Projects
None yet
Development

No branches or pull requests

3 participants