:start

@rem Sample batch script for gnuplot
@rem Make executable files and run the following command:
@rem
@rem > gnuplot.bat
@rem


@rem Set path to the utility. 

@set path="c:\Program Files (x86)\gnuplot\bin";%PATH%


@rem Run test programs.

@set bindir="..\win"
@set srcdir="..\test"
@%bindir%\test1.exe %srcdir%\testmat.mtx 1 nul "ILU0-BiCG" -i bicg -p ilu
@%bindir%\test1.exe %srcdir%\testmat.mtx 1 nul "ILU0-CGS" -i cgs -p ilu
@%bindir%\test1.exe %srcdir%\testmat.mtx 1 nul "ILU0-BiCGSTAB" -i bicgstab -p ilu


@rem Draw convergence history using gnuplot.

@gnuplot.exe gnuplot.plt

@del ILU0-* 

