Skip to content
Snippets Groups Projects
Commit 5ca192d0 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

show a proper help message

[[Imported from SVN: r1889]]
parent 051b0863
Branches
Tags
No related merge requests found
......@@ -13,7 +13,16 @@ from scipy.sparse import coo_matrix
# Print program usage
####################################################
def usage():
print 'Hallo Welt!'
print 'This program reads a matrix and an iteration history from disk'
print 'and compares the iterates with the last one, the presumed exact solution.'
print 'Errors in the energy norm and convergence rates are plotted.'
print 'Options are:'
print ' --help, -h: show help'
print ' --matrix, -m <file> Matrix filename'
print ' --iterates, -i <path> Base name of the iterates. A number will be appended'
print ' --from, -f <arg> Number of the first iterate (default: 0)'
print ' --to, -f <arg> Number of the last iterate'
print ' --solution, -s <file> The solution file (default: the last iterate)'
####################################################
# Read a matrix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment