Grisha's team's submitted changes to xsil2graphics2.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2840 41b19578-b77a-4e3b-9682-c8570d237623
Remove documentation for unsupported options in xsil2graphics2

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2841 41b19578-b77a-4e3b-9682-c8570d237623
Refactor MatlabImport and OctaveImport.

I moved the common code into a parent template MatlabOctaveImport.  Now MatlabImport and OctaveImport inherit from this template.  This significantly reduces code duplication.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2842 41b19578-b77a-4e3b-9682-c8570d237623
Use scientific notation for ASCII representation of floats.

The 'f' format specifier is unable to represent very small floating point values, and represents very large values inefficiently.  For example 10^{-9} easily fits in a double-precision floating point value, but will be printed as '0.00000' in a fixed-point string representation.  The appropriate way to write out general floating point values is in scientific notation, i.e. '1.00000e-09'

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2843 41b19578-b77a-4e3b-9682-c8570d237623
Restore underscores in variable names for MATLAB/Octave.

The format for variables exported to MATLAB/Octave is "variablename_momentgroupnumber".  Mathematica doesn't support underscores in variable names, but MATLAB/Octave do.  For consistency with xsil2graphics1 and the xsil2graphics2 HDF5 exporter, this is the format we need.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2844 41b19578-b77a-4e3b-9682-c8570d237623
Refactor variable name generation into a shared function.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2845 41b19578-b77a-4e3b-9682-c8570d237623
Permute the dimensions of all variables so that they are consistent with the HDF5 export. With the previous code, ASCII and binary export might generate variables of size 8 x 4 x 25, while HDF5 would generate 25 x 4 x 8.  The latter was chosen to be consistent with what the user specified in their XMDS files, so ASCII and Binary export have been modified so that the same variables are created independent of whether ASCII, Binary or HDF5 are used.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2846 41b19578-b77a-4e3b-9682-c8570d237623
Make Octave HDF5 export the dependent variables as well as the independent variables.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2847 41b19578-b77a-4e3b-9682-c8570d237623
Clear variables used when loading MATLAB binary files to avoid polluting the variable workspace.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2848 41b19578-b77a-4e3b-9682-c8570d237623
Endianness can be specified when opening binary files in MATLAB/Octave.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2849 41b19578-b77a-4e3b-9682-c8570d237623
Load binary data in a single fread() call.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2850 41b19578-b77a-4e3b-9682-c8570d237623
Produce a single output script for MATLAB/Octave even in the HDF5 case.  Although the code to import HDF5 data is different, we just detect which is being used at runtime (of the generated import script) and then run the right code.  This means that all MATLAB import scripts are compatible with Octave.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2851 41b19578-b77a-4e3b-9682-c8570d237623
Remove all the unused and unimplemented output flags for xsil2graphics2 and associated files.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2852 41b19578-b77a-4e3b-9682-c8570d237623
Rename PyLabImport to PythonImport

The Python importer now uses XMDS's built-in XSIL reader which is used by the test suite.  As a consequence, binary is now supported by the Python importer too.

git-svn-id: svn+ssh://svn.code.sf.net/p/xmds/code/trunk/xpdeint@2853 41b19578-b77a-4e3b-9682-c8570d237623