ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/tutoriel/src/main8.cpp
Revision: 415
Committed: Wed Aug 21 14:44:56 2013 UTC (11 years, 9 months ago) by cuillier
File size: 366 byte(s)
Log Message:
ajout d un tutoriel sur l utilisation de MAGIC

File Contents

# User Rev Content
1 cuillier 415 #include "gestionversion.h"
2     #include <stdio.h>
3     #include "mg_file.h"
4     #include "test_class.h"
5    
6     int main(void)
7     {
8     printf("Projet8\n");
9     MG_FILE gest("ejectorBGMF.magic");
10     FEM_MAILLAGE* fem=gest.get_fem_maillage(0);
11     TEST_CLASS tc(fem,&gest);
12     double vol=tc.calcul_volume_solution();
13     printf("Volume is %lf\n",vol);
14     gest.enregistrer("ejectorBGMFS.magic");
15    
16     }

Properties

Name Value
svn:executable *