Commit e0d9f8a0 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

small correction after AMDiS-Windows-Version

parent 87b4378d
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment