_MEDmeshComputationStepInfo236.c

Aller à la documentation de ce fichier.
00001 /*  This file is part of MED.
00002  *
00003  *  COPYRIGHT (C) 1999 - 2011  EDF R&D, CEA/DEN
00004  *  MED is free software: you can redistribute it and/or modify
00005  *  it under the terms of the GNU Lesser General Public License as published by
00006  *  the Free Software Foundation, either version 3 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  MED is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Lesser General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Lesser General Public License
00015  *  along with MED.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 
00019 #include <med.h>
00020 #include <med_config.h>
00021 #include <med_outils.h>
00022 #include <string.h>
00023 #include <stdlib.h>
00024 
00025 #include <2.3.6/med23v30.h>
00026 #include <2.3.6/med23v30_proto.h>
00027 #include "2.3.6/med23v30_misc.h"
00028 
00029 #include "med_versioned.h"
00030 
00031 void _MEDmeshComputationStepInfo236(int dummy, ...) {
00032 
00033 
00034   med_err   _ret            = -1;
00035   int       _num;
00036   med_bool  _changement     = MED_FALSE;
00037   med_bool  _transformation = MED_FALSE;
00038   med_int   _n=0,_numdt=MED_NO_DT,_numit=MED_NO_IT;
00039   int       _dummy = 0;
00040   char      _profilename[MED_TAILLE_NOM+1]="";
00041   med_int   _profilesize=0;
00042   
00043   MED_VARGS_DECL(const, med_idt      , , fid         );
00044   MED_VARGS_DECL(const, char * , const , meshname    );
00045   MED_VARGS_DECL(const, int          , , csit        );
00046   MED_VARGS_DECL(, med_int *, const    , numdt       );
00047   MED_VARGS_DECL(, med_int *, const    , numit       );
00048   MED_VARGS_DECL(, med_float *, const  , dt          );
00049   MED_VARGS_DECL(, med_bool           ,, musthave1cs );
00050   MED_VARGS_DECL(, med_err *          ,, fret        );
00051 
00052   va_list params;
00053   va_start(params,dummy);
00054 
00055   MED_VARGS_DEF(const, med_idt      , , fid         );
00056   MED_VARGS_DEF(const, char * , const , meshname    );
00057   MED_VARGS_DEF(const, int          , , csit        );
00058   MED_VARGS_DEF(, med_int *, const    , numdt       );
00059   MED_VARGS_DEF(, med_int *, const    , numit       );
00060   MED_VARGS_DEF(, med_float *, const  , dt          );
00061   MED_VARGS_DEF(, med_bool           ,, musthave1cs );
00062   MED_VARGS_DEF(, med_err *          ,, fret        );
00063 
00064   _num            = csit - 1;
00065 
00066   if ( csit != 1 ) {
00067     MED_ERR_(_ret,MED_ERR_INVALID,MED_ERR_PARAMETER,"");
00068     ISCRUTE_int(csit);goto ERROR;
00069   }
00070 
00071   _MEDmeshnEntity236(_dummy,
00072                      fid,
00073                      meshname,
00074                      _numdt,
00075                      _numit,
00076                      MED_ALL_ENTITY_TYPE,
00077                      MED_ALL_GEOTYPE,
00078                      MED_UNDEF_DATATYPE,
00079                      MED_NO_CMODE,
00080                      MED_UNDEF_PFLMODE,
00081                      _profilename,
00082                      &_profilesize,
00083                      &_changement,
00084                      &_transformation, &_n );
00085 
00086   if (_n < 0 ) {
00087     MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"_MEDmeshnEntity236");
00088     SSCRUTE(meshname);ISCRUTE(_numdt);ISCRUTE(_numit);;
00089     ISCRUTE(_n);goto ERROR;
00090   }
00091 
00092   *numdt=MED_NO_DT;
00093   *numit=MED_NO_IT;
00094   *dt='\0';
00095 
00096   if (_n < 1 ) {
00097     if ( musthave1cs ) {
00098       MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,"_MEDmeshnEntity236");
00099       SSCRUTE(meshname);ISCRUTE(_numdt);ISCRUTE(_numit);
00100       ISCRUTE(_n);goto ERROR;
00101     } else  {
00102       /*Pas d'erreur affiché */
00103       _ret = MED_ERR_CALL+MED_ERR_API;goto ERROR;
00104     }
00105   }
00106   _ret = 0;
00107  ERROR:
00108 
00109   va_end(params);
00110   *fret = _ret;
00111   return;
00112 }

Généré le Mon Nov 7 16:21:23 2011 pour MED fichier par  doxygen 1.6.1