gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
linearSystem.cpp
Go to the documentation of this file.
1
// Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2
//
3
// See the LICENSE.txt file in the Gmsh root directory for license information.
4
// Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5
6
#include "
linearSystemFull.h
"
7
#include "
linearSystemCSR.h
"
8
#include "
linearSystemGmm.h
"
9
10
void
linearSystemBase::setParameter
(
const
std::string &key, std::string value)
11
{
12
if
(
isAllocated
())
13
Msg::Error
(
"this system is already allocated, parameters cannot be set"
);
14
_parameters
[key] = value;
15
}
16
17
std::string
linearSystemBase::getParameter
(
const
std::string &key)
const
18
{
19
auto
it = this->
_parameters
.find(key);
20
if
(it == this->
_parameters
.end())
21
return
""
;
22
else
23
return
it->second;
24
}
Msg::Error
static void Error(const char *fmt,...)
Definition:
GmshMessage.cpp:482
linearSystemBase::_parameters
std::map< std::string, std::string > _parameters
Definition:
linearSystem.h:16
linearSystemCSR.h
linearSystemBase::isAllocated
virtual bool isAllocated() const =0
linearSystemBase::setParameter
void setParameter(const std::string &key, std::string value)
Definition:
linearSystem.cpp:10
linearSystemFull.h
linearSystemGmm.h
linearSystemBase::getParameter
std::string getParameter(const std::string &key) const
Definition:
linearSystem.cpp:17
src
solver
linearSystem.cpp
Generated by
1.8.18