llnl / griddyn Goto Github PK
View Code? Open in Web Editor NEWGridDyn is an open-source power transmission simulation software package
License: Other
GridDyn is an open-source power transmission simulation software package
License: Other
There appears to be some issue with the code coverage build on travis after the last merge.
There appears to be something wrong with the valgrind=true run for GridDyn
link on Travis.
Export cmake package config files with targets.
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)
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.
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.
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
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?
User wasn't able to get the voltage value published for a load in volts to change with the basevoltage parameter -- published value was still pu. Remind @nightlark to look into the issue.
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.
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.
Do we know why the CI results are not showing up in the PR anymore?
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?
Sundials seems to be getting rebuilt even though it is cached by Travis.
GridDyn/src/griddyn/links/hvdc.cpp
Line 38 in cf850ab
A dcLink
can not be set to be a slack bus, so that statement throws unconditionally. This additionally leaks dcl
.
This was added in 573966f, so I don't know what the expected behavior is.
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.