When I tried to run the 1D-neon-source case in example/tokamak-1D/extra, I met some problems. The log indicated the following error:
#0 (filtered)
#1 (filtered)
#2 in Options& set(Options&, Field3D) [clone .isra.0] [clone .cold]
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
#3 in decltype(auto) add<Field3D, GuardedOptions, void>(GuardedOptions&&, Field3D)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
#4 in NeutralParallelDiffusion::transform_impl(GuardedOptions&)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/libhermes-3-lib.so
#5 in Component::transform(Options&)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/libhermes-3-lib.so
#6 in ComponentScheduler::transform(Options&)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/libhermes-3-lib.so
#7 in Hermes::rhs(double, bool)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
#8 in Solver::run_rhs(double, bool)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#9 in SNESSolver::rhs_function(_p_Vec*, _p_Vec*, bool)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#10 in SNESSolver::snes_function(_p_Vec*, _p_Vec*, bool)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#11 in SNESComputeFunction
at /public3/home/t6s010954/library_mine/petsc/src/snes/interface/snes.c:2496:7
2494: SNESFunctionFn *computefunction;
2495: PetscCall(DMSNESGetFunction(dm, &computefunction, &ctx));
> 2496: PetscCallBack("SNES callback function", (*computefunction)(snes, x, y, ctx));
^
2497: }
2498: PetscCall(VecLockReadPop(x));
#12 in SNESLineSearchApply_BT
at /public3/home/t6s010954/library_mine/petsc/src/snes/linesearch/impls/bt/linesearchbt.c:141:7
139: PetscCall(SNESComputeObjective(snes, W, &g));
140: } else {
> 141: PetscCall((*linesearch->ops->snesfunc)(snes, W, G));
^
142: if (linesearch->ops->vinorm) {
143: gnorm = fnorm;
#13 in SNESLineSearchApply
at /public3/home/t6s010954/library_mine/petsc/src/snes/linesearch/interface/linesearch.c:643:3
641: PetscCall(PetscLogEventBegin(SNESLINESEARCH_Apply, linesearch, X, F, Y));
642:
> 643: PetscUseTypeMethod(linesearch, apply);
^
644:
645: PetscCall(PetscLogEventEnd(SNESLINESEARCH_Apply, linesearch, X, F, Y));
#14 in SNESSolve_NEWTONLS
at /public3/home/t6s010954/library_mine/petsc/src/snes/impls/ls/ls.c:234:5
232: and evaluate F = function(X) (depends on the line search).
233: */
> 234: PetscCall(SNESLineSearchApply(linesearch, X, F, &fnorm, Y));
^
235: PetscCall(SNESLineSearchGetReason(linesearch, &lssucceed));
236: PetscCall(SNESLineSearchGetNorms(linesearch, &xnorm, &fnorm, &ynorm));
#15 in SNESSolve
at /public3/home/t6s010954/library_mine/petsc/src/snes/interface/snes.c:4905:5
4903: snes->reason = SNES_CONVERGED_ITERATING;
4904: PetscCall(PetscLogEventBegin(SNES_Solve, snes, 0, 0, 0));
> 4905: PetscUseTypeMethod(snes, solve);
^
4906: PetscCall(PetscLogEventEnd(SNES_Solve, snes, 0, 0, 0));
4907: PetscCheck(snes->reason, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Internal error, solver %s returned without setting converged reason", ((PetscObject)snes)->type_name);
#16 in SNESSolver::run()
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#17 in Solver::solve(int, double)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#18 in main
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
#19 (filtered)
#20 at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
====== Exception thrown ======
Setting invalid value for 'species:ne:density_source'
This is the first time I have encountered this error. I have tried to change the initial values, remove the source of the neutrals of Neon, and even reduce Neon’s charge state to +4, yet none of these measures proved effective. Could you please explain what might be causing it? Thank you.
When I tried to run the 1D-neon-source case in example/tokamak-1D/extra, I met some problems. The log indicated the following error:
#0 (filtered)
#1 (filtered)
#2 in Options& set(Options&, Field3D) [clone .isra.0] [clone .cold]
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
#3 in decltype(auto) add<Field3D, GuardedOptions, void>(GuardedOptions&&, Field3D)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
#4 in NeutralParallelDiffusion::transform_impl(GuardedOptions&)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/libhermes-3-lib.so
#5 in Component::transform(Options&)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/libhermes-3-lib.so
#6 in ComponentScheduler::transform(Options&)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/libhermes-3-lib.so
#7 in Hermes::rhs(double, bool)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
#8 in Solver::run_rhs(double, bool)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#9 in SNESSolver::rhs_function(_p_Vec*, _p_Vec*, bool)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#10 in SNESSolver::snes_function(_p_Vec*, _p_Vec*, bool)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#11 in SNESComputeFunction
at /public3/home/t6s010954/library_mine/petsc/src/snes/interface/snes.c:2496:7
2494: SNESFunctionFn *computefunction;
2495: PetscCall(DMSNESGetFunction(dm, &computefunction, &ctx));
> 2496: PetscCallBack("SNES callback function", (*computefunction)(snes, x, y, ctx));
^
2497: }
2498: PetscCall(VecLockReadPop(x));
#12 in SNESLineSearchApply_BT
at /public3/home/t6s010954/library_mine/petsc/src/snes/linesearch/impls/bt/linesearchbt.c:141:7
139: PetscCall(SNESComputeObjective(snes, W, &g));
140: } else {
> 141: PetscCall((*linesearch->ops->snesfunc)(snes, W, G));
^
142: if (linesearch->ops->vinorm) {
143: gnorm = fnorm;
#13 in SNESLineSearchApply
at /public3/home/t6s010954/library_mine/petsc/src/snes/linesearch/interface/linesearch.c:643:3
641: PetscCall(PetscLogEventBegin(SNESLINESEARCH_Apply, linesearch, X, F, Y));
642:
> 643: PetscUseTypeMethod(linesearch, apply);
^
644:
645: PetscCall(PetscLogEventEnd(SNESLINESEARCH_Apply, linesearch, X, F, Y));
#14 in SNESSolve_NEWTONLS
at /public3/home/t6s010954/library_mine/petsc/src/snes/impls/ls/ls.c:234:5
232: and evaluate F = function(X) (depends on the line search).
233: */
> 234: PetscCall(SNESLineSearchApply(linesearch, X, F, &fnorm, Y));
^
235: PetscCall(SNESLineSearchGetReason(linesearch, &lssucceed));
236: PetscCall(SNESLineSearchGetNorms(linesearch, &xnorm, &fnorm, &ynorm));
#15 in SNESSolve
at /public3/home/t6s010954/library_mine/petsc/src/snes/interface/snes.c:4905:5
4903: snes->reason = SNES_CONVERGED_ITERATING;
4904: PetscCall(PetscLogEventBegin(SNES_Solve, snes, 0, 0, 0));
> 4905: PetscUseTypeMethod(snes, solve);
^
4906: PetscCall(PetscLogEventEnd(SNES_Solve, snes, 0, 0, 0));
4907: PetscCheck(snes->reason, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Internal error, solver %s returned without setting converged reason", ((PetscObject)snes)->type_name);
#16 in SNESSolver::run()
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#17 in Solver::solve(int, double)
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/external/BOUT-dev/lib/libbout++.so.5.2.0
#18 in main
at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
#19 (filtered)
#20 at /public3/home/t6s010954/hermes-dev/hermes-3-boron-test/build/hermes-3
====== Exception thrown ======
Setting invalid value for 'species:ne:density_source'
This is the first time I have encountered this error. I have tried to change the initial values, remove the source of the neutrals of Neon, and even reduce Neon’s charge state to +4, yet none of these measures proved effective. Could you please explain what might be causing it? Thank you.