Commit 0749965d authored by Benoît LÉ's avatar Benoît LÉ

Takes into account removing of getDoubleManager function in xField

parent 7f5611d9
......@@ -141,7 +141,7 @@ void PostProcessing::saveMesh(std::string export_name, int step, xMesh& mesh) {
void PostProcessing::saveField(std::string export_name, int step, const xField<>& field, xRegion reg) {
if(step>0 && export_manager.toExport("save", step, "")) {
xValueManagerDist<double>* double_manager=field.getDoubleManager();
xValueManagerDist<double>* double_manager=field.getValueManager();
std::ofstream oss(export_name+"_save.bin", ios::binary);
if(oss.is_open()) {
const int info_size=2*reg.dim()*sizeof(int);
......
......@@ -199,7 +199,7 @@ void QSFormulRemeshAniso::xReadFromParaview(string fName, string targetData, xFi
f.clear();// Whooooooo tricky ! If eof was raised, seekg can't go enywhere. We must clear f before or re-open it...
f.seekg(LocalistionTarget);
xValueManagerDist<double>* double_manager=field.getDoubleManager();
xValueManagerDist<double>* double_manager=field.getValueManager();
double val;
......@@ -448,7 +448,7 @@ void QSFormulRemeshAniso::projectPhiOnMesh(xMesh *mesh_new, std::map<mEntity *,
}
void QSFormulRemeshAniso::xAssignPhiValues(xField<> &field, xMesh *mesh, std::map<mEntity *, double> &projectedValues){
xValueManagerDist<double>* double_manager=field.getDoubleManager();
xValueManagerDist<double>* double_manager=field.getValueManager();
for(xIter it = mesh->begin(0); it != mesh->end(0); ++it ){
mEntity *e = *it;
......@@ -537,7 +537,7 @@ void QSFormulRemeshAniso::remesh() {
AOMD::AOMD_Util::Instance()->exportICIFile(sortiet, meshForRemeshing);
disp_field.getDoubleManager()->PrintForDebug("bef_clean_disp.dbg");
disp_field.getValueManager()->PrintForDebug("bef_clean_disp.dbg");
// end export
......@@ -592,8 +592,8 @@ void QSFormulRemeshAniso::remesh() {
mesh->deleteAllSubMesh();
delete mesh;
//disp_field.getDoubleManager()->clear();
disp_field.getDoubleManager()->PrintForDebug("aft_clean_disp.dbg");
//disp_field.getValueManager()->clear();
disp_field.getValueManager()->PrintForDebug("aft_clean_disp.dbg");
// end clean up
//Set mesh pointer as mesh_new
......@@ -606,11 +606,11 @@ void QSFormulRemeshAniso::remesh() {
declareMaterialVariables();
declareDispField();
disp_field.getDoubleManager()->PrintForDebug("aft_recreate_disp.dbg");
disp_field.getValueManager()->PrintForDebug("aft_recreate_disp.dbg");
// read displacement
xReadFromParaview(entree,"deplacement",disp_field,*mesh);
disp_field.getDoubleManager()->PrintForDebug("aft_read_disp.dbg");
disp_field.getValueManager()->PrintForDebug("aft_read_disp.dbg");
xEvalField<xtool::xIdentity<xtensor::xVector<>> > eval_disp1(disp_field);
//xEvalConstant<double> eval_disp_(1.);
......@@ -733,9 +733,9 @@ void QSFormulRemeshAniso::remesh() {
// }
applyEssentialEnv(1.);
disp_field.getDoubleManager()->PrintForDebug("aft_essenv_disp.dbg");
disp_field.getValueManager()->PrintForDebug("aft_essenv_disp.dbg");
declareDofs();
disp_field.getDoubleManager()->PrintForDebug("yeah.dbg");
disp_field.getValueManager()->PrintForDebug("yeah.dbg");
geom.buildBndMeas();
declareDispMeasField();
// tls_solver.swapOldAndCurrentLevelSetField();
......
......@@ -205,7 +205,7 @@ void PreProcessing::loadMesh(std::string mesh_name, xMesh& mesh) {
void PreProcessing::loadField(std::string field_name, xMesh& mesh, xField<>& field) {
const int dim=mesh.dim();
xValueManagerDist<double>* double_manager=field.getDoubleManager();
xValueManagerDist<double>* double_manager=field.getValueManager();
std::string filename=getFilename(field_name);
std::ifstream iss(filename, ios::binary);
if(iss.is_open()) {
......
......@@ -253,7 +253,7 @@ std::ostream& CustomValueDoubleDynamics::printVal(std::ostream& o) const {
// TODO coded to impose traction along Y for other boundary condition, one need
// to generalize this.
void RadialDirichletBoundaryCondition(const xField<>& field, std::vector<AOMD::mEntity*>::const_iterator it, std::vector<AOMD::mEntity*>::const_iterator end, double val) {
xValueManagerDist<double>* double_manager=field.getDoubleManager();
xValueManagerDist<double>* double_manager=field.getValueManager();
std::string str[2]={"Y"};
for(; it!=end; ++it) {
AOMD::mEntity* n=*it;
......
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