mmg2d
scalem_2d.c File Reference

Scale and unscale mesh and solution. More...

#include "mmg2d.h"
Include dependency graph for scalem_2d.c:

Functions

int MMG2D_scaleMesh (MMG5_pMesh mesh, MMG5_pSol sol)
 
int MMG2D_unscaleMesh (MMG5_pMesh mesh, MMG5_pSol sol)
 

Detailed Description

Scale and unscale mesh and solution.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Date
01 2014

Function Documentation

◆ MMG2D_scaleMesh()

int MMG2D_scaleMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the metric or solution structure.
Returns
1 if success, 0 if fail (computed bounding box too small or one af the anisotropic input metric is not valid).

Scale the mesh and the size informations between 0 and 1. Compute a default value for the hmin/hmax parameters if needed. Truncate the metric sizes between hmin/hmax

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_unscaleMesh()

int MMG2D_unscaleMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Here is the caller graph for this function: