Changeset 426 for trunk/src/civ.m


Ignore:
Timestamp:
May 17, 2012, 10:58:49 AM (12 years ago)
Author:
sommeria
Message:

compiled matlab civ introduced in Batch mode,
minor bugs fixed for histogram of velocity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r421 r426  
    11771177    case 'Matlab'
    11781178        if batch
     1179            binary_list={'CivmBin'};
    11791180            % verifier MenuMatlab installe sur le cluster
    11801181            % difficile a faire a priori
     
    16071608                            return
    16081609                        end
    1609                         text_matlabscript=[...
    1610                         '#!/bin/bash \n'...
    1611                         '. /etc/sysprofile \n'...
    1612                         'matlab -nodisplay -nosplash -nojvm <<END_MATLAB \n'...
    1613                         'cd(''' path_civ '''); \n'...
    1614                         'civ_matlab(''' filename_xml ''',''' OutputFile '.nc''); \n'...
    1615                         'exit \n'...
    1616                         'END_MATLAB \n'];
    1617                         fprintf(fid,text_matlabscript);
     1610%                         text_matlabscript=[...
     1611%                         '#!/bin/bash \n'...
     1612%                         '. /etc/sysprofile \n'...
     1613%                         'matlab -nodisplay -nosplash -nojvm <<END_MATLAB \n'...
     1614%                         'cd(''' path_civ '''); \n'...
     1615%                         'civ_matlab(''' filename_xml ''',''' OutputFile '.nc''); \n'...
     1616%                         'exit \n'...
     1617%                         'END_MATLAB \n'];
     1618                        cmd=['#!/bin/bash \n '...
     1619                        '#$ -cwd \n '...
     1620                        'hostname && date \n '...
     1621                        'umask 002 \n'...
     1622                         Param.xml.CivmBin ' ' Param.xml.RunTime ' ' filename_xml ' ' OutputFile '.nc'];%allow writting access to created files for user group
     1623                   
     1624                        fprintf(fid,cmd);
    16181625                        fclose(fid);
    16191626                        if isunix
Note: See TracChangeset for help on using the changeset viewer.