***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngmultiscale
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hanser, Valentin
ngmultiscale
Commits
b8d555ac
Commit
b8d555ac
authored
6 months ago
by
Hanser, Valentin
Browse files
Options
Downloads
Patches
Plain Diff
added getShift
parent
1931743f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#286155
passed
6 months ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
C++/phiFuncs/libPhiFunctions.cc
+1
-0
1 addition, 0 deletions
C++/phiFuncs/libPhiFunctions.cc
C++/phiFuncs/phifunctions.cc
+5
-0
5 additions, 0 deletions
C++/phiFuncs/phifunctions.cc
C++/phiFuncs/phifunctions.h
+1
-0
1 addition, 0 deletions
C++/phiFuncs/phifunctions.h
with
7 additions
and
0 deletions
C++/phiFuncs/libPhiFunctions.cc
+
1
−
0
View file @
b8d555ac
...
...
@@ -20,6 +20,7 @@ void ExportReclibPhiFunctions(py::module &main_m){
.
def
(
"__hash__"
,
&
PhiFunction
::
getHash
)
.
def
(
"getHash"
,
&
PhiFunction
::
getHash
)
.
def
(
"setShift"
,
&
PhiFunction
::
setShift
)
.
def_property
(
"shift"
,
&
PhiFunction
::
getShift
,
&
PhiFunction
::
setShift
)
.
def
(
"getPlotData"
,
[](
PhiFunction
*
instance
,
unsigned
int
iNum
)
{
...
...
This diff is collapsed.
Click to expand it.
C++/phiFuncs/phifunctions.cc
+
5
−
0
View file @
b8d555ac
...
...
@@ -32,6 +32,10 @@ void PhiFunction::setShift(const double shift_in){
shift
=
shift_in
;
}
double
PhiFunction
::
getShift
()
const
{
return
shift
;
}
double
PhiFunction
::
DirectEvaluate
(
double
x
)
const
{
unsigned
int
iN
=
0
;
// which sheet
...
...
@@ -223,6 +227,7 @@ std::string PhiFunction::toString() const{
ss
<<
"douter "
<<
douter
<<
std
::
endl
;
ss
<<
"coordinate "
<<
coordinate
<<
std
::
endl
;
ss
<<
"modelHalfAir "
<<
modelHalfAir
<<
std
::
endl
;
ss
<<
"shift "
<<
shift
<<
std
::
endl
;
return
ss
.
str
();
}
...
...
This diff is collapsed.
Click to expand it.
C++/phiFuncs/phifunctions.h
+
1
−
0
View file @
b8d555ac
...
...
@@ -66,6 +66,7 @@ public:
bool
getComplex
(){
return
false
;};
unsigned
int
getCoordinate
()
const
;
void
setShift
(
const
double
d
);
double
getShift
()
const
;
bool
operator
==
(
const
PhiFunction
&
o
)
const
;
std
::
size_t
getHash
()
const
{
return
std
::
hash
<
std
::
string
>
{}(
toString
());}
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment