@ECHO off rem OrbScore2.bat rem (This batch file is for Windows only!) rem ---------------------------------------------------------- rem Input Files Section rem (supply actual names of .feg, .in, .out, & data files) rem (put rem before any COPY to deactivate the line) rem ---------------------------------------------------------- rem Finite-element grid (.feg) file; always required: COPY Earth5R.feg fort.1 >> trash.txt rem rem Input-parameter (.in) file; always required: COPY iEarth5-049.in fort.2 >> trash.txt rem rem Velocities of nodes (v_____.out) file; always required: COPY vEarth5-049.out fort.3 >> trash.txt rem rem Torque report (optional, unless SKS directions are in use): COPY qEarth5-049.out fort.34 >> trash.txt rem rem Geodetic benchmark velocities (optional): COPY GPS2006_selected_subset.gps fort.11 >> trash.txt rem rem Most-compressive horizontal principal stress azimuths (optional): COPY robust_interpolated_stress_for_OrbScore2.dat fort.12 >> trash.txt rem rem Geologic slip-rates on faults (optional): rem COPY Slip_Rate_Data_lonlat.dig fort.13 >> trash.txt rem rem Seafloor spreading rates (optional): COPY magnetic_PB2002.dat fort.14 >> trash.txt rem rem Seismic catalog (optional): COPY GCMT_shallow_m5p7_1977-2017.eqc fort.15 >> trash.txt rem rem SKS directions (optional): COPY Fouch_2004_SKS_splitting-selected.dat fort.33 >> trash.txt rem rem Plate outlines (e.g., PB2002_plates.dig; required if SKS data) COPY PB2002_plates.dig fort.35 >> trash.txt rem rem ---------------------------------------------------------- rem Execution Section rem (set the desired output file name after the >; usually rem this is something like s______.out) rem ---------------------------------------------------------- ECHO Executing OrbScore2_batch.exe.... OrbScore2_batch.exe > sEarth5-049.out rem rem OrbScore2_batch.exe is different from OrbScore2.exe because: rem (1) It was compiled with the READ in rem SUBROUTINE Pause() commented-out so that it doesn't hang rem at error message (or successful completion). rem (2) It was compiled with the Fortran/Compatibility/ rem "filenames from command line" switch UN-checked, rem so that it doesn't hang on undefined filenames, rem but instead plows ahead by reading from fort.1, rem fort.2, fort.3, .... rem rem ---------------------------------------------------------- rem Clean-Up Section rem ---------------------------------------------------------- COPY fort.21 edotnc.feg >> trash.txt COPY fort.22 edotnm.feg >> trash.txt IF EXIST fort.23 COPY fort.23 v_smooth.out >> trash.txt rem IF EXIST fort.1 DEL fort.1 >> trash.txt IF EXIST fort.2 DEL fort.2 >> trash.txt IF EXIST fort.3 DEL fort.3 >> trash.txt IF EXIST fort.11 DEL fort.11 >> trash.txt IF EXIST fort.12 DEL fort.12 >> trash.txt IF EXIST fort.13 DEL fort.13 >> trash.txt IF EXIST fort.14 DEL fort.14 >> trash.txt IF EXIST fort.15 DEL fort.15 >> trash.txt IF EXIST fort.21 DEL fort.21 >> trash.txt IF EXIST fort.22 DEL fort.22 >> trash.txt IF EXIST fort.23 DEL fort.23 >> trash.txt IF EXIST fort.33 DEL fort.33 >> trash.txt IF EXIST fort.34 DEL fort.34 >> trash.txt IF EXIST fort.35 DEL fort.35 >> trash.txt IF EXIST trash.txt DEL trash.txt rem rem ---------------------------------------------------------- rem Termination Section rem ---------------------------------------------------------- ECHO Finished OrbScore2; see s______.out