Child pages
  • Sprintsession March 20th, 2008
Skip to end of metadata
Go to start of metadata

Sprint session March 20th, 2008

A second sprintsession was held on March 20th, 2008, in the meeting room Innovation (how appropriate) of the new institute on Delta Technology Deltares.


The meeting started with the following agenda:

The meeting starts at 9:00 (sharp - so be on time) with three brief presentations:

This time schedule is relatively strickt so that externally interested people will be able to join if they want to. After this the programme becomes flexible (an aspect that was evaluated positively by you last time).

The following items where suggested from the developersgroup:

Everyone is obviously free to join and contribute to each of these topics or to raise other items that are not on the agenda yet. It looks like it will be a very productive day. McTools is now at revision 759. Free dinner for the person to hit 1000!

Script demonstrating useful McTools applications (by Pieter and Kees)

Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'
clear all;fclose all;close all;clc

cd f:\mctools\mc_toolbox; mcsettings

% edit getCalls getIsCalledBy getInputSize getInputVariables roundoff double2evalstr getFileName getVolume

%% getInputVariables / getInputSize
clear;fclose all;close all;clc
quickstart internet
d = readTransectData('Jarkus Data','Noord-Holland','03000','2006');
xInitial    = d.xe(~isnan(d.ze)); %keep only the points with non-NaN z-values
zInitial    = d.ze(~isnan(d.ze)); %keep only the points with non-NaN z-values

dbstop in getVolume at 42
[Volume, result, Boundaries] = getVolume(xInitial, zInitial);
dbclear in getVolume at 42
writemessage(3,'Example of getInputVariables completed');

%% roundoff
clear;fclose all;close all;clc
X = 87643.7852;
for n = -2:2:4
    Xround = roundoff(X, n);

%% getdefaults
dbstop in roundoff at 40
Xround = roundoff(X);
dbclear in roundoff at 40

%% double2evalstr
clear;fclose all;close all;clc

dbstop in double2evalstr_test at 9
run double2evalstr_test

dbstop getHsig_t_test at 30
dbstop getHsig_t_test at 41
run getHsig_t_test
writemessage(4,'Example of double2evalstr_test completed');

%% getFileName
clear;fclose all;close all;clc
directory = 'D:\heijer\My Documents\Work\TU Delft\PhD project\Prob2B\ParametricStudy\DenHeijer2008\Case_10';
extension = 'txt';
exception = 'DP_Case_10_maxRD=068.7.txt';
fileid = [];
fname = getFileName(directory, extension, exception, fileid)
writemessage(5,'Example of getFileName completed');

%% writemessage
writemessage(7,'Staring example of writemessage');
SavedMessages = writemessage('get')

%% IsCalls
fun = 'getDuneErosion_VTV2006';
directory = 'D:\heijer\My Documents\Program Files\McTools\mc_toolbox\mc_applications\mc_ucit\getDuneErosion\';
IsCalls = getCalls(fun, directory);
IsCalls = getCalls(fun, directory, 'quiet');
writemessage(1,'Example of IsCalls completed');

%% IsCalledBy
clear;fclose all;close all;clc
fun = 'getVolume';
directory = 'D:\heijer\My Documents\Program Files\McTools\mc_toolbox\mc_applications\mc_ucit\getDuneErosion\';
[IsCalledBy, Line, Column] = getIsCalledBy(fun, directory);
[IsCalledBy, Line, Column] = getIsCalledBy(fun, directory, 'quiet');
writemessage(2,'Example of IsCalledBy completed');

%% FD_GUI_figure
cd( directory);
run FD_GUI_figure
writemessage(6,'Example of FD_GUI completed');

%% guidisp
guidisp('test message panel');
guidisp('Test Command line');
writemessage(7,'Example of guidisp completed');

%% dbstate
dbstop in getDuneErosion_test at 6
dbstop in getDuneErosion_VTV2006 at 12
writemessage(7,'Example of dbstate completed');

%% dbstopcurrent
cd('D:\heijer\My Documents\Work\Deltares\Projects\McTools');

%% writemessage
SavedMessages = writemessage('get')
dbclear all

Interfacing with Fortran

To use fortran functions from matlab there are a few options:

  • the loadlibrary method
  • the mexfile method
  • the swig method

The outcome of this session has been moved to a separate Tech Note.

Interfacing Fortran

Items that came up during the day

migrate Refference Guide generation to Build Server

  • use
  • generate set of HTML pages nightly
  • provide access to generated pages (upload to external Apache web server) or:
  • install external TeamCity for all external projects and then embed them as
    <script type="text/javascript" src="http://<build-server>/externalStatus.html?js=1&buildTypeId=bt8"></script>
  • (optional) add serach engine for HTML pages

- Merge into

  • !! possible only after documentation generation will be migrated to build server and published on web-site

- P: with copy of UCIT files

  • try to mount it using WebDAV on unix - check if it is used

- BUG in repository: svn co mctools gives:

A    mctools\UCIT_Actions\ModelActions\Support\template\hwgxytot.def
A    mctools\UCIT_Actions\ModelActions\Support\template\default.sed
A    mctools\UCIT_Actions\ModelActions\Support\template\ym6.sco
A    mctools\UCIT_Actions\ModelActions\Support\template\
svn: REPORT request failed on '/repos/mctools/!svn/vcc/default'
svn: REPORT of '/repos/mctools/!svn/vcc/default': 200 OK (

- Show how log messages work in DelftShell using log4net

- Matlab Builder NE (?) can we make Matlab plugin for DelftShell in this way?

- Remove spaces in directories

- Repository size is 1.45Gb - split src and data

  • No labels