Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All examples work as off 2113-04-18 #5

Open
GoogleCodeExporter opened this issue Mar 26, 2015 · 0 comments
Open

All examples work as off 2113-04-18 #5

GoogleCodeExporter opened this issue Mar 26, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

As users experienced, a number of examples failed. This was due to lack of 
backward compatibility. During the first half of April 2013, I went through all 
them, modernising where necessary, removing obsolete stuff and removing 
redundancy. Wherever necessary I upgraded existing functions, uniforming style 
and attempting to make them more robust.

mfLab has a few new directories, which you automatically get when you do an 
update in SVN. One of them is mflab/mfiles/testsuites in which you find some 
functions that allow you to run any examples in the directory tree downward 
from and including the node where you start it. There is one that only runs the 
mf_adapt and mf_build mfiles it can find. And there is one that searches all 
m-files for the use of a given string. This can be used to find a certain use 
of a given functions anywhere in the directory tree. These functions leave a 
message behind in the respective directories, telling whether the test failed 
and when to redo the test. It is not doing the same test each time you run the 
function unless you tell it so or unless the date for retesting has passed.
These functions may not be perfect, but they helped me enormously to achieve 
the heavy task of verifying every existing example. You may add the testsuites 
directory to the path. Here are the paths that I have in my shortcut.

% Shortcut summary goes here
pathstr = '~/GRWMODELS/mflab/mfiles/';
addpath([pathstr 'write']);
addpath([pathstr 'read']);
addpath([pathstr 'etc']);
addpath([pathstr 'analytic']);
addpath([pathstr 'visualization']);
addpath([pathstr 'gridcoords']);
addpath([pathstr 'fdm']);
addpath([pathstr 'NHI']);
addpath([pathstr 'testSuites']);
fprintf('... mfLab paths set.\n');

Theo Olsthoorn 2013-04-18

Original issue reported on code.google.com by [email protected] on 18 Apr 2013 at 10:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant