Giter Site home page Giter Site logo

griddyn's Issues

variant.hpp fails to compile with MSVC 19.15

The variant.hpp file doesn't compile with MSVC 19.15; the issue for the bug on GitHub for the third party library is: mpark/variant#48
mpark/variant PR to disable constexpr in MSVC 2017: mpark/variant#49

And the compiler bug report on the Visual Studio developer community can be found at: https://developercommunity.visualstudio.com/content/problem/275141/c2131-expression-did-not-evaluate-to-a-constant-fo.html (upvoting will make it more likely to get fixed sooner)

Check behavior of timestep when using GriddynRunner

See how the timestep parameter is used when running in a coupled simulation -- should be treated as the maximum time delta from the current time? vs telling GridDyn what time it should be at after returning from the step function.

valgrind run

Can we add flags to the valgrind run?
Specifically I want to get line numbers for the allocation call. As far as I can tell that involves adding --track_origins to the valgrind call, as well as making sure we are compiling with the -g flag.

Build Failing on Mac OS

Hi, I am trying to build GridDyn on Mac OS Catalina, and I am running into the following issue:

[ 79%] Linking CXX executable griddynMain
Undefined symbols for architecture x86_64:
  "_IDADense", referenced from:
      idaInterface::initialize(double) in libgridDyn.a(idaInterface.cpp.o)
  "_IDAKLU", referenced from:
      idaInterface::initialize(double) in libgridDyn.a(idaInterface.cpp.o)
  "_IDAKLUReInit", referenced from:
      idaInterface::sparseReInit(solverInterface::sparse_reinit_modes) in libgridDyn.a(idaInterface.cpp.o)
  "_IDASlsGetNumJacEvals", referenced from:
      idaInterface::get(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in libgridDyn.a(idaInterface.cpp.o)
  "_IDASlsSetSparseJacFn", referenced from:
      idaInterface::initialize(double) in libgridDyn.a(idaInterface.cpp.o)
  "_KINDense", referenced from:
      kinsolInterface::initialize(double) in libgridDyn.a(kinsolInterface.cpp.o)
  "_KINKLU", referenced from:
      kinsolInterface::initialize(double) in libgridDyn.a(kinsolInterface.cpp.o)
  "_KINKLUReInit", referenced from:
      kinsolInterface::sparseReInit(solverInterface::sparse_reinit_modes) in libgridDyn.a(kinsolInterface.cpp.o)
  "_KINKLUSetOrdering", referenced from:
      kinsolInterface::initialize(double) in libgridDyn.a(kinsolInterface.cpp.o)
  "_KINSlsGetNumJacEvals", referenced from:
      kinsolInterface::logSolverStats(int, bool) const in libgridDyn.a(kinsolInterface.cpp.o)
      kinsolInterface::get(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in libgridDyn.a(kinsolInterface.cpp.o)
  "_KINSlsSetSparseJacFn", referenced from:
      kinsolInterface::initialize(double) in libgridDyn.a(kinsolInterface.cpp.o)
  "_SlsSetToZero", referenced from:
      idaJacSparse(double, double, _generic_N_Vector*, _generic_N_Vector*, _generic_N_Vector*, _SlsMat*, void*, _generic_N_Vector*, _generic_N_Vector*, _generic_N_Vector*) in libgridDyn.a(idaInterface.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gridDynMain/griddynMain] Error 1
make[1]: *** [gridDynMain/CMakeFiles/griddynMain.dir/all] Error 2
make: *** [all] Error 2

GridDyn autobuild on Windows

Both AUTOBUILD_SuiteSparse and AUTOBUILD_KLU need to be given to GridDyn to make SuiteSparse get autobuilt (AUTOBUILD_SuiteSparse didn't show up in the list of options with the initial configuration on Windows). Is the behavior of needing to provide both of these options intended?

HELICS autobuild fails on Linux

I tried enabling autobuild for HELICS, and there were a number of errors. It would be good to go over the HELICS and ZMQ find/autobuild scripts to make sure that variable names getting set are correct; different configurations of autobuilding/finding can result in different variables being set.

Calls to factory prepObjects leak memory

All of the calls to factory->prepObjects (here for example) result in memory leaks. I'm not sure why that happens.

Deleting these calls probably degrades performance across successive deconstructions and constructions, but it also fixes the leaks.

creating a GridDyn project group

I am starting to wonder if it might be a good idea to create project group for GridDyn, so we could have examples as a separate repo and some of the other libraries split out from GridDyn in a group? I am not sure if we would use that as the main on or this one as the main one and miror it?

@nightlark @mcneish1 What do you think?

sundialsJac does not consistently check for null dstate_dt

In griddyn/solvers/sundialsInterface.cpp, sundialsJac is allowed to be passed a null dstate_dt. It acknowledges this here and here.

However,

NVECTOR_DATA (sd->use_omp, dstate_dt), filterAd, cj, sd->mode);

and

NVECTOR_DATA (sd->use_omp, dstate_dt), *a1, cj, sd->mode);

do not check for this, and can segfault. These should have the same nullptr check as above.

kinsolInterface::initialize leaks if called multiple times

LS and J are leaked upon successive calls to kinsolInterface::initialize. Additionally, KINInit leaks if called more than once for a given solverMem.

KINInit should be only called when !flags[initialized_flag], and LS/J should be freed here (or in sundialsInterface::allocate, where that happens with the other variables sundialsInterface manages).

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.