Skip to content

Where is the compositional field called strain #3

@guit-hub

Description

@guit-hub

Respected Derek Neuharth:
When I try to run wide-nosp.prm,I encounted a bug as following:

Postprocessing:
/opt/gcc/gcc-9.2.0/include/c++/9.2.0/bits/shared_ptr_base.h:1007: std::__shared_ptr_access<_Tp, _Lp, , >::element_type& std::__shared_ptr_access<_Tp, _Lp, , >::operator*() const [with _Tp = aspect::InitialComposition::Manager<2>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; bool = false; bool = false; std::__shared_ptr_access<_Tp, _Lp, , >::element_type = aspect::InitialComposition::Manager<2>]: Assertion '_M_get() != nullptr' failed.
I noticed that there is a comment in subsection Compositional fields saying:

attention: _Plugin_InitialCompositionRift requires a field called strain to seed in the initial noise

so I try to change "noninitial_plastic_strain" to "strain" and try again,but the problem is still there.Then I guess maybe the defined name in source code is not a string like "strain",but something else,so I just check the source code.Then I found a section in rift.cc,where there is a comment saying:

// Check that there is a compositional field called strain and retrieve its index

but I failed found any keys like "strain".I found keys like "plastic_strain","viscous_strain" and "total_strain",so I change the "strain" to "total_strain" and try again,but it just still failed.Then I continue to check the other source code.I found that there is an empty function "declare_parameters" in ../geom/lithosphere_rift.cc",but I still fail to found the key of "strain".So I request your kind help here.Is there any problem about "strain"?Should I write a declare_parameter function myself? Please offer me some insight,thanks very much.
By the way,my aspect version is ASPECT-3.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions