Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
e0d9f8a0
Commit
e0d9f8a0
authored
Feb 26, 2013
by
Praetorius, Simon
Browse files
small correction after AMDiS-Windows-Version
parent
87b4378d
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Functors.h
View file @
e0d9f8a0
...
...
@@ -261,6 +261,24 @@ struct FadeOut : public TertiaryAbstractFunction<double, double, double ,double>
return
dist
*
mean
+
(
1.0
-
dist
)
*
v
;
}
};
struct
Random
:
public
AbstractFunction
<
double
,
WorldVector
<
double
>
>
{
Random
(
double
mean_
,
double
amplitude_
)
:
mean
(
mean_
),
amplitude
(
amplitude_
)
{
std
::
srand
(
time
(
NULL
));
}
double
operator
()(
const
WorldVector
<
double
>
&
x
)
const
{
return
mean
+
amplitude
*
((
std
::
rand
()
/
static_cast
<
double
>
(
RAND_MAX
))
-
0.5
);
}
private:
double
mean
;
double
amplitude
;
};
}
#endif // AMDIS_FUNCTORS_H
...
...
AMDiS/src/ProblemStat.cc
View file @
e0d9f8a0
...
...
@@ -746,9 +746,7 @@ namespace AMDiS {
void
ProblemStatSeq
::
buildAfterCoarsen
(
AdaptInfo
*
adaptInfo
,
Flag
flag
,
bool
asmMatrix
,
bool
asmVector
)
{
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
FUNCNAME
(
"ProblemStat::buildAfterCoarsen()"
);
#endif
if
(
dualMeshTraverseRequired
())
{
#ifdef HAVE_PARALLEL_DOMAIN_AMDIS
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment