@ECHO OFF
REM shell interface between code_aster to onmetis and back to code_aster
REM this shell is called from code_aster fortran routine as follows: 
REM rep_outils/onmetis fort.99 0 fort98
REM this shell is executed in the working directory (work) of code_aster current process
REM rep_outils is an option of command line shell to code_aster

REM copy of fort.99 (%1) coming from code_aster to fort.81 used as input by onmetis
copy %1 fort.81
REM call of onmetis.exe
REM %~dp0 is the expanded pathname of the current script under NT
%~dp0\metis\onmetis.exe fort.81
REM copy of fort.85 (onmetis result file) to fort.98 (%3) used as input by code_aster
copy fort.85 %3


