idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.76k stars 1.05k forks source link

Improved error for material propreties and kernels #3247

Closed jortensi closed 10 years ago

jortensi commented 10 years ago

We build models with large numbers of materials and blocks. I added an aux kernel to compute a source to output to the exodus file, but I have some blocks that do not have the material property needed in the kernel defined, totally my omission. The error that I got (below) does not seem to link the property with the aux kernel that needs it. From a user's perspective, it would be nice to have both so one can find the error quickly. Can we improve this error to make it easier to debug the input?

Material property 'nu_sigma_fission' is not defined on block 19

Stack frames: 11 0: libMesh::print_trace(std::ostream&) 1: SubProblem::checkMatProps(std::map<unsigned int, std::set<std::string, std::less, std::allocatorstd::string >, std::less, std::allocator<std::pair<unsigned int const, std::set<std::string, std::less, std::allocatorstd::string > > > >&, std::map<unsigned int, std::set<std::string, std::less, std::allocatorstd::string >, std::less, std::allocator<std::pair<unsigned int const, std::set<std::string, std::less, std::allocatorstd::string > > > >&, std::string) 2: SubProblem::checkBlockMatProps() 3: FEProblem::checkProblemIntegrity() 4: ActionWarehouse::executeActionsWithAction(std::string const&) 5: ActionWarehouse::executeAllActions() 6: MooseApp::runInputFile() 7: MooseApp::run() 8: /home/ortej/projects/trunk/rattlesnake/rattlesnake-opt [0x4065cb] 9: __libc_start_main 10: libMesh::Elem::opposite_node(unsigned int, unsigned int) const [0] /home/ortej/projects/trunk/moose/framework/src/base/SubProblem.C, line 294, compiled May 15 2014 at 11:03:13 [unset]: aborting job: application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

permcody commented 10 years ago

Yes, this is reasonable. I'll look into it when I get a chance.