Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alta
alta
Commits
7aa9ac47
Commit
7aa9ac47
authored
Oct 31, 2013
by
Laurent Belcour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making the core to compile again.
parent
4fcd5d17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
24 deletions
+26
-24
sources/core/function.cpp
sources/core/function.cpp
+0
-24
sources/core/params.cpp
sources/core/params.cpp
+24
-0
sources/core/params.h
sources/core/params.h
+2
-0
No files found.
sources/core/function.cpp
View file @
7aa9ac47
...
@@ -22,30 +22,6 @@ void function::bootstrap(const data*, const arguments& args)
...
@@ -22,30 +22,6 @@ void function::bootstrap(const data*, const arguments& args)
}
}
}
}
// Acces to the domain of definition of the function
void
function
::
setMin
(
const
vec
&
min
)
{
#ifdef DEBUG
assert
(
min
.
size
()
==
_nX
)
;
#endif
_min
=
min
;
}
void
function
::
setMax
(
const
vec
&
max
)
{
#ifdef DEBUG
assert
(
max
.
size
()
==
_nX
)
;
#endif
_max
=
max
;
}
vec
function
::
getMin
()
const
{
return
_min
;
}
vec
function
::
getMax
()
const
{
return
_max
;
}
void
function
::
save
(
const
std
::
string
&
filename
,
const
arguments
&
args
)
const
void
function
::
save
(
const
std
::
string
&
filename
,
const
arguments
&
args
)
const
{
{
bool
is_alta
=
!
args
.
is_defined
(
"export"
)
||
args
[
"export"
]
==
"alta"
;
bool
is_alta
=
!
args
.
is_defined
(
"export"
)
||
args
[
"export"
]
==
"alta"
;
...
...
sources/core/params.cpp
View file @
7aa9ac47
...
@@ -357,3 +357,27 @@ void params::print_input_params()
...
@@ -357,3 +357,27 @@ void params::print_input_params()
std
::
cout
<<
it
->
second
.
name
<<
std
::
endl
;
std
::
cout
<<
it
->
second
.
name
<<
std
::
endl
;
}
}
}
}
// Acces to the domain of definition of the function
void
parametrized
::
setMin
(
const
vec
&
min
)
{
#ifdef DEBUG
assert
(
min
.
size
()
==
_nX
)
;
#endif
_min
=
min
;
}
void
parametrized
::
setMax
(
const
vec
&
max
)
{
#ifdef DEBUG
assert
(
max
.
size
()
==
_nX
)
;
#endif
_max
=
max
;
}
vec
parametrized
::
getMin
()
const
{
return
_min
;
}
vec
parametrized
::
getMax
()
const
{
return
_max
;
}
sources/core/params.h
View file @
7aa9ac47
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
#include <cassert>
#include <cassert>
#include <iostream>
#include <iostream>
#include "common.h"
/*! \class params
/*! \class params
* \ingroup core
* \ingroup core
* \brief a static class allowing to change from one parametrization
* \brief a static class allowing to change from one parametrization
...
...
Write
Preview
Markdown
is supported
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