Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
730e4f95
Commit
730e4f95
authored
Apr 05, 2020
by
Philipp Fensch
Browse files
Merged dpsim changes
parent
65d20312
Changes
3
Hide whitespace changes
Inline
Side-by-side
Include/dpsim/MNASolverGpu.h
View file @
730e4f95
...
...
@@ -62,7 +62,7 @@ namespace DPsim {
public:
SolveTask
(
MnaSolverGpu
<
VarType
>&
solver
,
Bool
steadyStateInit
)
:
Task
(
solver
.
mName
+
".Solve"
),
mSolver
(
solver
),
mSteadyStateInit
(
steadyStateInit
)
{
for
(
auto
it
:
solver
.
m
Power
Components
)
{
for
(
auto
it
:
solver
.
m
MNA
Components
)
{
if
(
it
->
template
attribute
<
Matrix
>(
"right_vector"
)
->
get
().
size
()
!=
0
)
{
mAttributeDependencies
.
push_back
(
it
->
attribute
(
"right_vector"
));
}
...
...
Source/CMakeLists.txt
View file @
730e4f95
...
...
@@ -53,12 +53,12 @@ if(WITH_SHMEM)
endif
()
if
(
WITH_CUDA
)
list
(
APPEND SOURCES
list
(
APPEND
DPSIM_
SOURCES
MNASolverGpu.cpp
)
list
(
APPEND INCLUDE_DIRS
${
CUDA_INCLUDE_DIRS
}
${
CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES
}
)
list
(
APPEND LIBRARIES
${
CUDA_LIBRARIES
}
${
CUDA_cusolver_LIBRARY
}
)
list
(
APPEND
DPSIM_
INCLUDE_DIRS
${
CUDA_INCLUDE_DIRS
}
${
CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES
}
)
list
(
APPEND
DPSIM_
LIBRARIES
${
CUDA_LIBRARIES
}
${
CUDA_cusolver_LIBRARY
}
)
endif
()
if
(
WITH_OPENMP
)
...
...
Source/MNASolverGpu.cpp
View file @
730e4f95
...
...
@@ -137,17 +137,17 @@ template <typename VarType>
Task
::
List
MnaSolverGpu
<
VarType
>::
getTasks
()
{
Task
::
List
l
;
for
(
const
auto
&
comp
:
this
->
m
Power
Components
)
{
for
(
auto
comp
:
this
->
m
MNA
Components
)
{
for
(
auto
task
:
comp
->
mnaTasks
())
{
l
.
push_back
(
task
);
}
}
for
(
const
auto
&
node
:
this
->
mNodes
)
{
for
(
auto
node
:
this
->
mNodes
)
{
for
(
auto
task
:
node
->
mnaTasks
())
l
.
push_back
(
task
);
}
// TODO signal components should be moved out of MNA solver
for
(
const
auto
&
comp
:
this
->
mSignalComp
onent
s
)
{
for
(
auto
comp
:
this
->
mSi
mSignalComps
)
{
for
(
auto
task
:
comp
->
getTasks
())
{
l
.
push_back
(
task
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment