Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Conversation

@iomaganaris
Copy link
Contributor

auto name = node.get_block_name()->get_node_name();
const auto& method = node.get_method();
auto method = node.get_method();
if (method != nullptr && method->get_node_name() == codegen::naming::CVODE_METHOD) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we plan to have cvode in the future in coreneuron or not?

Copy link
Contributor

@cattabiani cattabiani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good PR! A few nitpicking comments...

@iomaganaris iomaganaris closed this Oct 2, 2020
@iomaganaris iomaganaris reopened this Oct 2, 2020
Copy link
Contributor

@pramodk pramodk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just few minor nitpicks otherwise lgtm!

* in multiple context and hence we are keeping original names.
* Once we finish code generation part then we change this.
*/
static std::map<std::string, TokenType> keywords = {{"VERBATIM", Token::VERBATIM},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you used different/newer clang-format? If this is required, we should do that in different PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've used clang-format-9 for the formatting, however it might not be the version that changed the formatting but the addition of const in the beginning. Then {{"VERBATIM", Token::VERBATIM}, doesn't fit in the end of the line and the other entries cannot be placed underneath it

{"cvode_t", MethodInfo(0, 0)},
{"cvode_t_v", MethodInfo(0, 0)}};
const static std::map<std::string, MethodInfo> methods = {{"adams", MethodInfo(DERF | KINF, 0)},
{"runge", MethodInfo(DERF | KINF, 0)},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar reason as before. Addition of const in the beginning of the line should be the reason for the change of formatting

Copy link
Contributor

@cattabiani cattabiani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

g2g!

Copy link
Contributor

@pramodk pramodk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iomaganaris iomaganaris merged commit 528043d into master Oct 5, 2020
@iomaganaris iomaganaris deleted the handle_cvode branch October 5, 2020 11:07
JCGoran pushed a commit to neuronsimulator/nrn that referenced this pull request Mar 12, 2025
- Change `after_cvode` solver to `cnexp`
- Add `nt` variable in `at_time` function

NMODL Repo SHA: BlueBrain/nmodl@528043d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants