Coder Social home page Coder Social logo

Comments (2)

tomidakn avatar tomidakn commented on July 20, 2024

Sorry, this is my fault. The boundary routine is being largely modified during implementation of MeshBlocks and MPI. This had been already fixed in my version but I have not committed it yet. I will commit as soon as possible once I confirm MPI is working correctly.

from athena.

c-white avatar c-white commented on July 20, 2024

After implementing the fix I suggested in my local copy, a new error shows up. This might be a sign of a separate bug, so I'll record it here.

python configure.py --prob shock_tube --coord cartesian -debug
make clean
make
cd bin
./athena -i ../inputs/hydro/athinput.sod

results in

### FATAL ERROR in function [ParameterInput::GetReal]
Parameter name 'problem_id' not found in block 'job'

Some debug results:

gdb athena
(gdb) b parameter_input.cpp:ParameterInput::GetString
(gdb) run -i ../inputs/hydro/athinput.sod
(gdb) c
(gdb) b InputBlock::GetPtrToLine
(gdb) c
(gdb) n
(gdb) p name.c_str()
$1 = 0x100204318 "problem_id"
(gdb) p name.length()
$2 = 10
(gdb) p pl->param_name.c_str()
$3 = 0x100200de8 "problem_id"
(gdb) p pl->param_name.length()
$4 = 4607182418800017408

It seems that when searching for a line with "problem_id" it finds the line, but the C++ std::string is corrupted with a bad length. Note that std::string::compare() will not return a match if this parameter is not the same, even if the underlying C character arrays are the same up to a terminating \0.

from athena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.