xref: /petsc/src/ts/tutorials/extchem.sh (revision 0b3a6bba120a0cdd0b26cdef79233fff1bc80a01)
1c4762a1bSJed Brown#! /bin/sh -f
2c4762a1bSJed Brown#
3c4762a1bSJed Brown#  Runs several extchem mechanisms with various integrators
4c4762a1bSJed Brown#
5c4762a1bSJed Brownfor mech in h2_10sp.inp gasoline.inp meth_ethanol.inp;
6c4762a1bSJed Browndo
7c4762a1bSJed Brown    for type in arkimex "bdf -ts_adapt_type basic -ts_adapt_dt_max 1.e-5" sundials radau5;
8c4762a1bSJed Brown    do
9*bcd4bb4aSBarry Smith        echo "${mech}" "${type}"
10*bcd4bb4aSBarry Smith        ./extchem -options_file "${mech}" -ts_max_steps 10000 -ts_type "${type}"  -ts_view -log_view -ts_monitor_lg_timestep -ts_monitor_lg_solution -lg_use_markers true -draw_pause -2 -draw_size .5,.5 > extchem_output_"${mech}"_"${type}" 2>&1
11c4762a1bSJed Brown    done
12c4762a1bSJed Browndone
13