Changeset 114
- Timestamp:
- 04/28/09 16:58:32 (16 years ago)
- Location:
- issm/trunk
- Files:
-
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/etc/issm.rc
r108 r114 60 60 server_port=1025 61 61 server_tunneling=no 62 server_codepath=/u/astrid1/larour/issm -1.0/bin62 server_codepath=/u/astrid1/larour/issm/trunk/bin 63 63 server_executionpath=/home/larour/Testing/Execution 64 64 -
issm/trunk/src/m/classes/public/loadresultsfromcluster.m
r1 r114 5 5 % md=loadresultsfromcluster(md,solutiontype); 6 6 7 %Get cielo.rc location8 cielo_rc_location=which('cielo.rc');7 %Get issm.rc location 8 issm_rc_location=which('issm.rc'); 9 9 10 10 %Figure out parameters for this particular cluster 11 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster, cielo_rc_location);11 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster,issm_rc_location); 12 12 13 13 %if we are running locally, no need to call ssh to recover the logs and results. We figure out by comparing the -
issm/trunk/src/m/classes/public/peek.m
r1 r114 7 7 % See also: QueueJobPeek 8 8 9 %Get cielo.rc location10 cielo_rc_location=which('cielo.rc');9 %Get issm.rc location 10 issm_rc_location=which('issm.rc'); 11 11 12 12 %Figure out parameters for this particular cluster 13 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster, cielo_rc_location);13 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster,issm_rc_location); 14 14 15 15 %peek at the queued job -
issm/trunk/src/m/classes/public/preparerun.m
r1 r114 20 20 end 21 21 22 %Get cielo.rc location23 cielo_rc_location=which('cielo.rc');22 %Get issm.rc location 23 issm_rc_location=which('issm.rc'); 24 24 25 25 %Figure out parameters for this particular cluster 26 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster, cielo_rc_location);26 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster,issm_rc_location); 27 27 28 28 %Marshall model data into a binary file. -
issm/trunk/src/m/classes/public/solveparallel.m
r1 r114 20 20 end 21 21 22 %Get cielo.rc location23 cielo_rc_location=which('cielo.rc');22 %Get issm.rc location 23 issm_rc_location=which('issm.rc'); 24 24 25 25 %Figure out parameters for this particular cluster 26 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster, cielo_rc_location);26 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster,issm_rc_location); 27 27 28 28 %Marshall model data into a binary file. -
issm/trunk/src/m/solutions/ice/debug.m
r1 r114 4 4 % the results of both solutions 5 5 6 %first get this into the cielocode, at the core solution level6 %first get this into the issm code, at the core solution level 7 7 %PetscSynchronizedPrintf(MPI_COMM_WORLD,"Messing up here\n"); 8 8 %PetscSynchronizedFlush(MPI_COMM_WORLD); … … 14 14 %nicely, if not correct. When everything works, reinstate the try catch. 15 15 16 %an alter is used to modify the core solution in Ice, to stop right after Emg. But for cielo,16 %an alter is used to modify the core solution in Ice, to stop right after Emg. But for issm, 17 17 %we don't have an alter, just use the first 5 lines of this file and put them in the batch 18 18 %solution. … … 61 61 md=solve(md,'diagnostic_horiz','cielo'); 62 62 63 cielo_rc_location=which('cielo.rc'); [codepath,executionpath]=ProcessBatchParametersFromCieloRc(md.cluster,cielo_rc_location);63 issm_rc_location=which('issm.rc'); [codepath,executionpath]=ProcessBatchParametersFromCieloRc(md.cluster,issm_rc_location); 64 64 65 65 pause(5); -
issm/trunk/src/m/utils/Model/ProcessParallelParametersFromCieloRc.m
r1 r114 1 function [server_codepath server_executionpath]=ProcessParallelParametersFromCieloRc(server_name, cielo_rc_location)2 %PROCESSPARALLELPARAMETERSFROMCIELORC - process parallel parameters from cielo1 function [server_codepath server_executionpath]=ProcessParallelParametersFromCieloRc(server_name,issm_rc_location) 2 %PROCESSPARALLELPARAMETERSFROMCIELORC - process parallel parameters from issm 3 3 % 4 % This function reads through the cielo_rc_location for server settings (name, ip, port and4 % This function reads through the issm_rc_location for server settings (name, ip, port and 5 5 % tunneling) used to run parallel solution sequences 6 6 % 7 7 % Usage: 8 % [server_codepath server_executionpath]=ProcessParallelParametersFromCieloRc(server_name, cielo_rc_location)8 % [server_codepath server_executionpath]=ProcessParallelParametersFromCieloRc(server_name,issm_rc_location) 9 9 10 10 lines_per_server=5; 11 %open cielo.rc file12 fid=fopen( cielo_rc_location);11 %open issm.rc file 12 fid=fopen(issm_rc_location); 13 13 if fid==-1, 14 error('Could not find cielo.rc file in delivery directory');14 error('Could not find issm.rc file in delivery directory'); 15 15 end 16 16 … … 20 20 line=fgetl(fid); 21 21 if ~strcmp(line,'begin'), 22 error(' cielo.rc file in delivery directory should always start with the begin statement');22 error('issm.rc file in delivery directory should always start with the begin statement'); 23 23 end 24 24 … … 33 33 %Check for end of file 34 34 if ~ischar(line), 35 error(' cielo.rc file in delivery directory should end with an end statement');35 error('issm.rc file in delivery directory should end with an end statement'); 36 36 end 37 37 %Ignore empty lines … … 64 64 value=splittedstring{2}; 65 65 if ~strcmp(descriptor,'server_codepath'), 66 error('server settings in cielo.rc don''t follow the correct syntax');66 error('server settings in issm.rc don''t follow the correct syntax'); 67 67 end 68 68 server_codepath=value; … … 76 76 value=splittedstring{2}; 77 77 if ~strcmp(descriptor,'server_executionpath'), 78 error('server settings in cielo.rc don''t follow the correct syntax');78 error('server settings in issm.rc don''t follow the correct syntax'); 79 79 end 80 80 server_executionpath=value; … … 94 94 95 95 if found==0, 96 error(['ProcessParallelParametersFromCieloRc error message: could not find setting for cluster ' server_name 'in cielo.rc file']);96 error(['ProcessParallelParametersFromCieloRc error message: could not find setting for cluster ' server_name 'in issm.rc file']); 97 97 end 98 98
Note:
See TracChangeset
for help on using the changeset viewer.