-
Notifications
You must be signed in to change notification settings - Fork 11
/
MatMCNP.bat
49 lines (45 loc) · 1.08 KB
/
MatMCNP.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@ECHO OFF
SET job=%1
SET SYSTEMTYPE=dos
rem
rem
ECHO *
ECHO *
ECHO ************************************************************
ECHO * Copyright 2019 National Technology and Engineering *
ECHO * Solutions of Sandia, LLC (NTESS) *
ECHO * *
ECHO * Under the terms of Contract DE-NA0003525 with NTESS, the *
ECHO * U.S. Government retains certain rights in this software. *
ECHO * *
ECHO ************************************************************
ECHO *
ECHO *
rem
rem
rem
rem Copy the executable file to working directory
rem
COPY bin\MatMCNP_vXGEN.exe MatMCNP.exe
rem
rem
rem Run the job
rem
matmcnp-PC.pl %1
set saveerr=%ERRORLEVEL%
if %saveerr% GTR 0 goto ERROR
rem
rem Delete the executable
rem
del MatMCNP.exe
rem
rem
rem
ECHO MatMCNP Calculation Complete
goto END
:USAGE
ECHO Usage: MatMCNP jobname
goto END
:ERROR
ECHO Batch file error occurred
:END