Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
API_functionsf.c
Go to the documentation of this file.
1/* =============================================================================
2** This file is part of the mmg software package for the tetrahedral
3** mesh modification.
4** Copyright (c) Bx INP/CNRS/Inria/UBordeaux/UPMC, 2004-
5**
6** mmg is free software: you can redistribute it and/or modify it
7** under the terms of the GNU Lesser General Public License as published
8** by the Free Software Foundation, either version 3 of the License, or
9** (at your option) any later version.
10**
11** mmg is distributed in the hope that it will be useful, but WITHOUT
12** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13** FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14** License for more details.
15**
16** You should have received a copy of the GNU Lesser General Public
17** License and of the GNU General Public License along with mmg (in
18** files COPYING.LESSER and COPYING). If not, see
19** <http://www.gnu.org/licenses/>. Please read their terms carefully and
20** use this copy of the mmg distribution only if you accept them.
21** =============================================================================
22*/
23
41#include "mmgcommon_private.h"
42
43
47FORTRAN_NAME(MMG5_INIT_FILENAMES,mmg5_init_filenames,(MMG5_pMesh *mesh,MMG5_pSol *sol),(mesh,sol)) {
48
50 return;
51}
52
56FORTRAN_NAME(MMG5_SET_INPUTMESHNAME, mmg5_set_inputmeshname,
57 (MMG5_pMesh *mesh, char *meshin, int *strlen, int *retval),
58 (mesh,meshin,strlen,retval)) {
59 char *tmp = NULL;
60
61 tmp = (char*)malloc((*strlen+1)*sizeof(char));
62 strncpy(tmp,meshin,*strlen);
63 tmp[*strlen] = '\0';
66
67 return;
68}
69
73FORTRAN_NAME(MMG5_SET_INPUTSOLNAME, mmg5_set_inputsolname,
74 (MMG5_pMesh *mesh,MMG5_pSol *sol, char* solin, int* strlen, int* retval),
75 (mesh,sol,solin,strlen,retval)) {
76
77 char *tmp = NULL;
78
79 tmp = (char*)malloc((*strlen+1)*sizeof(char));
80 strncpy(tmp,solin,*strlen);
81 tmp[*strlen] = '\0';
84
85 return;
86}
87
92FORTRAN_NAME(MMG5_SET_OUTPUTMESHNAME,mmg5_set_outputmeshname,
93 (MMG5_pMesh *mesh, char* meshout, int* strlen,int* retval),
94 (mesh,meshout,strlen,retval)){
95 char *tmp = NULL;
96
97 tmp = (char*)malloc((*strlen+1)*sizeof(char));
98 strncpy(tmp,meshout,*strlen);
99 tmp[*strlen] = '\0';
102
103 return;
104}
105
109FORTRAN_NAME(MMG5_SET_OUTPUTSOLNAME,mmg5_set_outputsolname,
110 (MMG5_pMesh *mesh,MMG5_pSol *sol, char* solout,int* strlen, int* retval),
111 (mesh,sol,solout,strlen,retval)){
112 char *tmp = NULL;
113
114 tmp = (char*)malloc((*strlen+1)*sizeof(char));
115 strncpy(tmp,solout,*strlen);
116 tmp[*strlen] = '\0';
119
120 return;
121}
122
126FORTRAN_NAME(MMG5_SCALEMESH,mmg5_scalemesh,
127 (MMG5_pMesh *mesh,MMG5_pSol *met,MMG5_pSol *ls,int* retval),
128 (mesh,met,ls,retval)){
129
130 *retval = MMG5_scaleMesh(*mesh,*met,*ls);
131
132 return;
133}
134
138FORTRAN_NAME(MMG5_UNSCALEMESH,mmg5_unscalemesh,
139 (MMG5_pMesh *mesh,MMG5_pSol *met,MMG5_pSol *ls,int* retval),
140 (mesh,met,ls,retval)){
141
142 *retval = MMG5_unscaleMesh(*mesh,*met,*ls);
143
144 return;
145}
146
150FORTRAN_NAME(MMG5_MMGFREE_NAMES,mmg5_mmgfree_names,(MMG5_pMesh *mesh
151 ,MMG5_pSol *met
152 ),(mesh,met
153 )){
155 return;
156}
int MMG5_Set_outputMeshName(MMG5_pMesh mesh, const char *meshout)
int MMG5_Set_inputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solin)
int MMG5_Set_inputMeshName(MMG5_pMesh mesh, const char *meshin)
void MMG5_mmgFree_names(MMG5_pMesh mesh, MMG5_pSol met)
void MMG5_Init_fileNames(MMG5_pMesh mesh, MMG5_pSol sol)
int MMG5_Set_outputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solout)
MMG5_pMesh char int int * retval
strncpy(tmp, meshin, *strlen0)
tmp[*strlen0]
MMG5_pMesh MMG5_pSol * sol
MMG5_pMesh char * meshin
MMG5_pMesh * mesh
LIBMMG_CORE_EXPORT int MMG5_unscaleMesh(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol ls)
Definition: scalem.c:689
LIBMMG_CORE_EXPORT int MMG5_scaleMesh(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol ls)
Definition: scalem.c:649
#define FORTRAN_NAME(nu, nl, pl, pc)
Adds function definitions.
#define MMG5_SAFE_FREE(ptr)
MMG mesh structure.
Definition: libmmgtypes.h:605