Unittest_MEDfilter_2.f

Aller à la documentation de ce fichier.
00001 C*  This file is part of MED.
00002 C*
00003 C*  COPYRIGHT (C) 1999 - 2015  EDF R&D, CEA/DEN
00004 C*  MED is free software: you can redistribute it and/or modify
00005 C*  it under the terms of the GNU Lesser General Public License as published by
00006 C*  the Free Software Foundation, either version 3 of the License, or
00007 C*  (at your option) any later version.
00008 C*
00009 C*  MED is distributed in the hope that it will be useful,
00010 C*  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 C*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 C*  GNU Lesser General Public License for more details.
00013 C*
00014 C*  You should have received a copy of the GNU Lesser General Public License
00015 C*  along with MED.  If not, see <http://www.gnu.org/licenses/>.
00016 C*
00017 
00018 C******************************************************************************
00019 C * Tests for filter module
00020 C *
00021 C *****************************************************************************
00022       program MEDfilter2
00023 C     
00024       implicit none
00025       include 'med.hf'
00026 C
00027 C     
00028       integer cret
00029       integer fid
00030       character*64 fname
00031       parameter (fname = "Unittest_MEDfilter_2.med")
00032       integer nflt
00033       parameter (nflt=1)
00034       integer flta(1)
00035       integer*8 flt(1)
00036       integer nent,nvale,scent
00037       parameter (nent=10,nvale=1,scent=2)
00038 C 
00039 C
00040 C     open file
00041       call mfiope(fid,fname,MED_ACC_CREAT,cret)
00042       print *,'Open file',cret
00043       if (cret .ne. 0 ) then
00044          print *,'ERROR : open file'
00045          call efexit(-1)
00046       endif
00047 C
00048 C
00049 C     filter creation
00050       call mfrall(nflt,flt,cret)
00051       print *,'Filter array allocation',cret
00052       if (cret .ne. 0 ) then
00053          print *,'ERROR : filter array allocation'
00054          call efexit(-1)
00055       endif
00056 c
00057       call mfrcre(fid,nent,nvale,scent,MED_ALL_CONSTITUENT,
00058      &            MED_FULL_INTERLACE,MED_GLOBAL_PFLMODE, 
00059      &            MED_NO_PROFILE,MED_UNDEF_SIZE,flta,flt(1),
00060      &            cret)
00061       print *,'Filter creation',cret
00062       if (cret .ne. 0 ) then
00063          print *,'ERROR : filter creation'
00064          call efexit(-1)
00065       endif
00066 C
00067 C
00068 C     filter deallocation
00069       call mfrdea(nflt,flt,cret)
00070       print *,'Filter array deallocation',cret
00071       if (cret .ne. 0 ) then
00072          print *,'ERROR : filter dearray allocation'
00073          call efexit(-1)
00074       endif
00075 C
00076 C
00077 C     close file
00078       call mficlo(fid,cret)
00079       print *,'Close file',cret
00080       if (cret .ne. 0 ) then
00081          print *,'ERROR :  close file'
00082          call efexit(-1)
00083       endif  
00084 C
00085 C
00086 C
00087       end
00088 

Généré le Thu Oct 8 14:26:17 2015 pour MED fichier par  doxygen 1.6.1