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

Refactoring and clean-up of legacy code #250

Closed

Description

@alkino

Here is the list of what to do to clean code.

#ifdef _OPENMP
void Phase1::populate(NrnThread& nt, int imult, OMP_Mutex& mut) {
#else
void Phase1::populate(NrnThread& nt, int imult) {
#endif
  • Use fstream instead of File*
  • Use tie for .first, .second assignment

- [ ] For AoS increment pointer instead of using indexes : we will deprecate AoS separately (soon)
- [ ] Get rid of warnings from generated code : we shouldn't worry about mod2c as it will be replaced by NMODL
- [ ] nrnmpi_pgvts_least remove? : will need it for cvode so we can it for now
- [ ] Use spdlog? #180 CNEUR-22 : there is separate ticket for logging

Activity

  1. alkino commented on Feb 12, 2020

    @alkino
    MemberAuthor

    @pramodk About « nrnmpi_pgvts_least remove? », nobody use it.
    Maybe this function is used from outside world?
    Are you sure no VERBATIM code use it?

  2. nrnhines commented on Feb 12, 2020

    @nrnhines
    Collaborator

    nrnmpi_pgvts_least is used by cvode which does not exist (yet) in CoreNEURON.

  3. alkino commented on Feb 13, 2020

    @alkino
    MemberAuthor

    @pramodk @nrnhines @ohm314 do you agree to use spdlog instead of printf / fprintf?

  4. ohm314 commented on Feb 13, 2020

    @ohm314
    Contributor

    I'm definitely in favor of using spdlog and fmt to clean up all logging and string formatting.

  5. added this to the NEURON v8.0 Release milestone on Jul 24, 2020
  6. changed the title [-]Clean code[/-] [+]Refactoring and clean-up of legacy code[/+] on Aug 9, 2020
  7. pramodk commented on Aug 9, 2020

    @pramodk
    Collaborator

    @alkino : I have updated/re-ordered some of the tasks above. With #283 out of the way, this can be now taken up.

  8. added a commit that references this issue on Nov 18, 2020
  9. alkino commented on Oct 12, 2021

    @alkino
    MemberAuthor

    I close this, because last items are no more relevant

  10. nrnhines commented on Oct 12, 2021

    @nrnhines
    Collaborator

    do you agree to use spdlog

    First I've heard of it. After a quick look, the benefits seem worth it. It was not clear to me if logging could be turned off.

  11. alkino commented on Oct 12, 2021

    @alkino
    MemberAuthor

    Yes it can.

  12. alkino commented on Oct 12, 2021

    @alkino
    MemberAuthor

    #316 : the right place to have a discussion about spdlog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions