Loading...
Searching...
No Matches
adapt.h
Go to the documentation of this file.
#ifndef _RHEO_ADAPT_OPTION_H
#define _RHEO_ADAPT_OPTION_H
//
// This file is part of Rheolef.
//
// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
//
// Rheolef is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// Rheolef is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Rheolef; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// =========================================================================
namespace rheolef {
}// namespace rheolef
#include "rheolef/field.h"
namespace rheolef {
// [verbatim_adapt_option]
struct adapt_option {
typedef std::vector<int>::size_type size_type;
std::string generator;
bool isotropic;
Float err;
Float errg;
Float hcoef;
Float hmin;
Float hmax;
Float ratio;
Float cutoff;
size_type n_vertices_max;
size_type n_smooth_metric;
bool splitpbedge;
Float thetaquad;
Float anisomax;
bool clean;
std::string additional;
bool double_precision;
Float anglecorner; // angle below which bamg considers 2 consecutive edge to be part of
// the same spline
adapt_option() :
generator(""),
isotropic(true), err(1e-2), errg(1e-1), hcoef(1), hmin(0.0001), hmax(0.3), ratio(0), cutoff(1e-7),
n_vertices_max(50000), n_smooth_metric(1),
splitpbedge(true), thetaquad(std::numeric_limits<Float>::max()),
anisomax(1e6), clean(false), additional("-RelError"), double_precision(false),
anglecorner(0)
{}
};
// [verbatim_adapt_option]
// [verbatim_adapt]
template <class T, class M>
geo_basic<T,M>
adapt (
const field_basic<T,M>& phi,
const adapt_option& options = adapt_option());
// [verbatim_adapt]
// backward compatibility:
using adapt_option_type = adapt_option;
}// namespace rheolef
#endif // _RHEO_ADAPT_OPTION_H
Float
see the Float page for the full documentation
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
rheolef::adapt
geo_basic< T, M > adapt(const field_basic< T, M > &uh, const adapt_option &opts)
adapt(uh,opts): see the adapt page for the full documentation
Definition adapt.cc:179
std
STL namespace.
phi
Definition phi.h:25
rheolef::adapt_option
adapt_option: see the adapt page for the full documentation
Definition adapt.h:147
rheolef::adapt_option::err
Float err
Definition adapt.h:151
rheolef::adapt_option::generator
std::string generator
Definition adapt.h:149
rheolef::adapt_option::cutoff
Float cutoff
Definition adapt.h:157
rheolef::adapt_option::anglecorner
Float anglecorner
Definition adapt.h:166
rheolef::adapt_option::thetaquad
Float thetaquad
Definition adapt.h:161
rheolef::adapt_option::n_smooth_metric
size_type n_smooth_metric
Definition adapt.h:159
rheolef::adapt_option::splitpbedge
bool splitpbedge
Definition adapt.h:160
rheolef::adapt_option::n_vertices_max
size_type n_vertices_max
Definition adapt.h:158
rheolef::adapt_option::hmax
Float hmax
Definition adapt.h:155
rheolef::adapt_option::double_precision
bool double_precision
Definition adapt.h:165
rheolef::adapt_option::ratio
Float ratio
Definition adapt.h:156
rheolef::adapt_option::adapt_option
adapt_option()
Definition adapt.h:168
rheolef::adapt_option::anisomax
Float anisomax
Definition adapt.h:162
rheolef::adapt_option::clean
bool clean
Definition adapt.h:163
rheolef::adapt_option::size_type
std::vector< int >::size_type size_type
Definition adapt.h:148
rheolef::adapt_option::additional
std::string additional
Definition adapt.h:164
rheolef::adapt_option::hcoef
Float hcoef
Definition adapt.h:153
rheolef::adapt_option::hmin
Float hmin
Definition adapt.h:154
rheolef::adapt_option::errg
Float errg
Definition adapt.h:152
rheolef::adapt_option::isotropic
bool isotropic
Definition adapt.h:150