source: issm/trunk/src/m/utils/Analysis/runmemessage.m@ 2953

Last change on this file since 2953 was 2953, checked in by Eric.Larour, 15 years ago

Took out system calls in OS, because Matlab tends to hang with system commands.
oshostname should not return the hostname, without trailing whites.
Added routines for analysis runs, typically found in runme.m files.
BamgCallFromMetric: can now call Bamg with metric directly.
ddewhite,ddeblank,ddeblank: strip trailing whites from string.

File size: 265 bytes
Line 
1function runmemessage(messages,num,type)
2
3found=0;
4for i=1:size(messages,1),
5 if messages{i,1}==num,
6 disp(sprintf('\n%s: %g\n',[messages{i,2} ' in ' type],num));
7 found=1;
8 end
9end
10if ~found,
11 error(['runmemessage error message: could not find run ' num]);
12end
Note: See TracBrowser for help on using the repository browser.