Changeset 325 for trunk/src/civ.m


Ignore:
Timestamp:
Dec 7, 2011, 9:37:16 PM (12 years ago)
Author:
gostiaux
Message:

batch for matlab now working on clustez

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r322 r325  
    14381438                    if batch   
    14391439                        path_civ=fileparts(which('civ'));
    1440                         batch_file_list{length(batch_file_list)+1}=['matlab -nodisplay -nosplash -r "cd ' path_civ ';civ_matlab(''' filename_xml ''');"'];
     1440                        filename_bat=[OutputFile '.bat'];
     1441                        [fid,message]=fopen(filename_bat,'w');
     1442                        if isequal(fid,-1)
     1443                            msgbox_uvmat('ERROR', ['creation of .bat file: ' message])
     1444                            return
     1445                        end
     1446                        fprintf(fid,['/opt/matlab/R2011a/bin/matlab -nodisplay -nosplash -r "cd(''' path_civ ''');'...
     1447                            'civ_matlab(''' filename_xml ''',''' OutputFile '.nc'');exit"']);
     1448                        fclose(fid);
     1449                        if isunix
     1450                            system(['chmod +x ' filename_bat]);
     1451                        end
     1452                        batch_file_list{length(batch_file_list)+1}=filename_bat;
    14411453                    else
    14421454                        [Data,erromsg]=civ_matlab(Param,filecell.nc.civ1{ifile,j});
Note: See TracChangeset for help on using the changeset viewer.