Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-solvers
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
Container registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Jaap
dune-solvers
Commits
e4a84c25
Commit
e4a84c25
authored
9 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup] Remove trailing whitespace
parent
11c14160
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/solvers/common/boxconstraint.hh
+3
-3
3 additions, 3 deletions
dune/solvers/common/boxconstraint.hh
dune/solvers/common/interval.hh
+5
-5
5 additions, 5 deletions
dune/solvers/common/interval.hh
dune/solvers/common/permutationmanager.hh
+5
-5
5 additions, 5 deletions
dune/solvers/common/permutationmanager.hh
with
13 additions
and
13 deletions
dune/solvers/common/boxconstraint.hh
+
3
−
3
View file @
e4a84c25
...
@@ -29,7 +29,7 @@ public:
...
@@ -29,7 +29,7 @@ public:
}
}
//! Subtract vector from box
//! Subtract vector from box
BoxConstraint
<
T
,
dim
>&
operator
-=
(
const
Dune
::
FieldVector
<
T
,
dim
>&
v
)
BoxConstraint
<
T
,
dim
>&
operator
-=
(
const
Dune
::
FieldVector
<
T
,
dim
>&
v
)
{
{
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
{
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
{
val
[
2
*
i
]
-=
v
[
i
];
val
[
2
*
i
]
-=
v
[
i
];
...
@@ -55,9 +55,9 @@ public:
...
@@ -55,9 +55,9 @@ public:
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
BoxConstraint
<
T
,
dim
>&
v
)
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
BoxConstraint
<
T
,
dim
>&
v
)
{
{
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
s
<<
"Direction: "
<<
i
<<
", val[0] = "
<<
v
.
val
[
2
*
i
]
s
<<
"Direction: "
<<
i
<<
", val[0] = "
<<
v
.
val
[
2
*
i
]
<<
", val[1] = "
<<
v
.
val
[
2
*
i
+
1
]
<<
std
::
endl
;
<<
", val[1] = "
<<
v
.
val
[
2
*
i
+
1
]
<<
std
::
endl
;
return
s
;
return
s
;
}
}
...
...
This diff is collapsed.
Click to expand it.
dune/solvers/common/interval.hh
+
5
−
5
View file @
e4a84c25
...
@@ -24,21 +24,21 @@ public:
...
@@ -24,21 +24,21 @@ public:
{
{
return
data_
[
i
];
return
data_
[
i
];
}
}
/** \brief Const array-like access
/** \brief Const array-like access
*/
*/
const
field_type
&
operator
[](
int
i
)
const
const
field_type
&
operator
[](
int
i
)
const
{
{
return
data_
[
i
];
return
data_
[
i
];
}
}
/** \brief Project a scalar onto the interval
/** \brief Project a scalar onto the interval
*/
*/
field_type
projectIn
(
const
field_type
&
x
)
const
field_type
projectIn
(
const
field_type
&
x
)
const
{
{
return
std
::
max
(
std
::
min
(
x
,
data_
[
1
]),
data_
[
0
]);
return
std
::
max
(
std
::
min
(
x
,
data_
[
1
]),
data_
[
0
]);
}
}
/** \brief Fast projection onto the interval if you know that your value
/** \brief Fast projection onto the interval if you know that your value
* is smaller than your upper bound
* is smaller than your upper bound
*/
*/
...
@@ -64,7 +64,7 @@ public:
...
@@ -64,7 +64,7 @@ public:
};
};
private
:
private
:
/** \brief The actual data */
/** \brief The actual data */
std
::
array
<
field_type
,
2
>
data_
;
std
::
array
<
field_type
,
2
>
data_
;
};
};
...
@@ -80,5 +80,5 @@ inline std::ostream& operator<< (std::ostream& s, const Interval<field_type>& in
...
@@ -80,5 +80,5 @@ inline std::ostream& operator<< (std::ostream& s, const Interval<field_type>& in
}
// namespace Solvers
}
// namespace Solvers
}
// namespace Dune
}
// namespace Dune
#endif
#endif
This diff is collapsed.
Click to expand it.
dune/solvers/common/permutationmanager.hh
+
5
−
5
View file @
e4a84c25
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
//! Idea of implementation: define an ordering for the nodes (with respect to the axis of anisotropy)
//! Idea of implementation: define an ordering for the nodes (with respect to the axis of anisotropy)
//! and then use a merge sort algorithm to renumerate the nodes along the lines which are parallel to this axis.
//! and then use a merge sort algorithm to renumerate the nodes along the lines which are parallel to this axis.
//! to do so, we introduce a 'NodeList' class.
//! to do so, we introduce a 'NodeList' class.
//! everything is handeled by the PermutationManager
//! everything is handeled by the PermutationManager
// type of nodes:
// type of nodes:
...
@@ -85,7 +85,7 @@ public:
...
@@ -85,7 +85,7 @@ public:
};
};
template
<
class
CoordinateImp
,
int
dim_domain
>
template
<
class
CoordinateImp
,
int
dim_domain
>
class
AxisComparison
class
AxisComparison
{
{
...
@@ -116,7 +116,7 @@ public:
...
@@ -116,7 +116,7 @@ public:
while
(
current_axis
>=
0
)
while
(
current_axis
>=
0
)
{
{
if
(
current_axis
==
primaryAxis_
)
if
(
current_axis
==
primaryAxis_
)
current_axis
-=
1
;
current_axis
-=
1
;
if
(
current_axis
<
0
)
if
(
current_axis
<
0
)
break
;
break
;
...
@@ -156,7 +156,7 @@ public:
...
@@ -156,7 +156,7 @@ public:
template
<
class
GridViewImp
>
template
<
class
GridViewImp
>
class
PermutationManager
{
class
PermutationManager
{
public:
public:
...
@@ -368,7 +368,7 @@ public:
...
@@ -368,7 +368,7 @@ public:
if
(
block_number
<
number_of_blocks_
)
if
(
block_number
<
number_of_blocks_
)
{
return
block_sizes
[
block_number
];
}
{
return
block_sizes
[
block_number
];
}
else
else
{
std
::
cout
<<
"Request for block number "
<<
block_number
<<
", but there are only "
<<
number_of_blocks_
<<
" blocks."
<<
std
::
endl
;
{
std
::
cout
<<
"Request for block number "
<<
block_number
<<
", but there are only "
<<
number_of_blocks_
<<
" blocks."
<<
std
::
endl
;
std
::
cout
<<
"Note that the numeration of the blocks starts with 0."
<<
std
::
endl
;
std
::
cout
<<
"Note that the numeration of the blocks starts with 0."
<<
std
::
endl
;
abort
();
abort
();
}
}
...
...
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