Changeset 25303 for issm/trunk-jpl/src/m/solve/parseresultsfromdisk.m
- Timestamp:
- 07/27/20 12:11:11 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/solve/parseresultsfromdisk.m
r25300 r25303 229 229 mu0 = md.love.mu0; 230 230 rr = md.materials.radius; 231 rho= md.materials.density; 232 rho_avg = sum( rho .* diff(rr.^3)/sum(diff(rr.^3)) );233 temp_field = cell(degmax+1,nfreq,nlayer+1,6); 231 rho= md.materials.density; 232 rho_avg = sum(rho.*diff(rr.^3)/sum(diff(rr.^3))); 233 temp_field = cell(degmax+1,nfreq,nlayer+1,6); 234 234 for ii=1:degmax+1 235 235 for jj=1:nfreq 236 236 for kk=1:nlayer+1 237 237 if (kk<nlayer+1) 238 ll = (ii-1)*(nlayer+1)*6 + ((kk-1)*6+1) + 3; 239 temp_field{ii,jj,kk,1} = field(ll+(1-1),jj)*r0; % mm = 4 238 ll = (ii-1)*(nlayer+1)*6 + ((kk-1)*6+1) + 3; 239 temp_field{ii,jj,kk,1} = field(ll+(1-1),jj)*r0; % mm = 4 240 240 temp_field{ii,jj,kk,2} = field(ll+(2-1),jj)*mu0; % mm = 5 241 241 temp_field{ii,jj,kk,3} = field(ll+(3-1),jj)*r0; % mm = 6 … … 252 252 if (md.love.forcing_type==9) 253 253 temp_field{ii,jj,kk,2} = 0; 254 temp_field{ii,jj,kk,6} = (2*ii-1)/r0 - ii*field(ll+(3-1),jj)*g0; 254 temp_field{ii,jj,kk,6} = (2*ii-1)/r0 - ii*field(ll+(3-1),jj)*g0; 255 255 elseif (md.love.forcing_type==11) 256 256 temp_field{ii,jj,kk,2} = -(2*(ii-1)+1)*rho_avg/3;
Note:
See TracChangeset
for help on using the changeset viewer.