Changeset 5954
- Timestamp:
- 09/22/10 13:19:26 (14 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 15 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/ismodelselfconsistent.m
r5919 r5954 167 167 end 168 168 %}}} 169 %SCALAR 169 %SCALAR {{{ 170 170 if ~isscalar(md.control_type), 171 171 error('model not consistent: md.control_type should be a scalar'); … … 190 190 %}}} 191 191 %PARALLEL{{{1 192 if ~strcmpi(md.cluster,'none'), 193 194 %NAN VALUES 195 fields={'time','np'}; 196 checknan(md,fields); 197 198 %FIELD > 0 199 fields={'time','np'}; 200 checkgreaterstrict(md,fields,0); 201 202 end 192 md.cluster.IsConsistent; 203 193 %}}} 204 194 -
issm/trunk/src/m/model/loadresultsfromcluster.m
r5905 r5954 5 5 % md=loadresultsfromcluster(md,runtimename); 6 6 7 %Get cluster.rc location8 cluster_rc_location=which('cluster.rc');9 10 7 %Figure out parameters for this particular cluster 11 [codepath,executionpath,login,port]=ClusterParameters(md.cluster,cluster_rc_location); 8 codepath=md.cluster.codepath; 9 executionpath=md.cluster.executionpath; 10 login=md.cluster.login; 11 port=md.cluster.port; 12 clustername=md.cluster.name; 12 13 13 14 if nargin==2, … … 37 38 38 39 %copy files from cluster to present directory 39 issmscpin( md.cluster, login, port, directory, packages);40 issmscpin(clustername, login, port, directory, packages); 40 41 41 42 %read log files onto fields … … 62 63 %erase input file if run was carried out on same platform. 63 64 hostname=oshostname(); 64 if strcmpi(hostname, md.cluster),65 if strcmpi(hostname,clustername), 65 66 if md.qmu_analysis, 66 67 delete([['qmu' num2str(GetPId) '/'] md.name '.bin']); -
issm/trunk/src/m/model/solve.m
r5904 r5954 47 47 %If running in parallel, we have a different way of launching the solution 48 48 %sequences. 49 if ~strcmpi(md.cluster ,'none'),49 if ~strcmpi(md.cluster.name,'none'), 50 50 md=solveparallel(md,options); 51 51 return; -
issm/trunk/src/m/model/solveparallel.m
r5546 r5954 10 10 md.runtimename=sprintf('%s-%i-%i-%i-%i-%i-%i',md.name,GetPId,c(2),c(3),c(1),c(4),c(5)); 11 11 12 %Get cluster.rc location13 cluster_rc_location=which('cluster.rc');14 15 %Figure out parameters for this particular cluster16 [codepath,executionpath,login,port]=ClusterParameters(md.cluster,cluster_rc_location);17 18 12 %Marshall model data into a binary file. 19 13 marshall(md); … … 25 19 26 20 %Now, we need to build the queuing script, used by the cluster to launch the job. 27 BuildQueue ingScript(md,executionpath,codepath);21 BuildQueueScript(md.cluster,md.name,md.analysis_type,md.mem_debug); 28 22 29 23 %Now, launch the queueing script 30 md=LaunchQueueJob(md,executionpath,login,port,options);24 LaunchQueueJob(md,options); 31 25 32 26 %Do we return, or just wait for results? 33 27 if (md.waitonlock~=0 & ~strcmpi(options.batch,'yes')), 34 28 %we wait for the done file 35 islock=waitonlock(md ,executionpath,login,port);29 islock=waitonlock(md); 36 30 if islock==0, 37 31 %no results to be loaded -
issm/trunk/src/m/model/solvers/solversettoasm.m
r5903 r5954 7 7 %md.petscoptions={{'mat_type','aij'},{'ksp_type','cgs'},{'pc_type','asm'},{sub_mat_type','mumps'},{'sub_pc_type','lu'},{'pc_asm_overlap',4},{'pc_factor_shift_positive_definite','true'}}; 8 8 %md.petscoptions={{'mat_type','aij'},{'ksp_type','cgs'},{'pc_type','asm'},{'sub_pc_type','lu'},{'pc_asm_overlap',4}}; 9 md.petscoptions={{'mat_type','aij'},{'ksp_type','gmres'},{'pc_type','asm'},{'sub_pc_type','lu'},{'pc_asm_overlap', 4}};9 md.petscoptions={{'mat_type','aij'},{'ksp_type','gmres'},{'pc_type','asm'},{'sub_pc_type','lu'},{'pc_asm_overlap',3},{'ksp_max_it',100},{'ksp_rtol',1e-30'}}; -
issm/trunk/src/m/model/waitonlock.m
r5560 r5954 9 9 10 10 %Get filename (lock file) and options 11 executionpath=md.cluster.executionpath; 12 cluster=md.cluster.name; 13 login=md.cluster.login; 14 port=md.cluster.port; 15 timelimit=md.waitonlock; 11 16 filename=[executionpath '/' md.runtimename '/' md.name '.lock']; 12 cluster=md.cluster;13 timelimit=md.waitonlock;14 17 15 18 %waitonlock will work if the lock is on the same machine only:
Note:
See TracChangeset
for help on using the changeset viewer.