Skip to content

Commit ba7a369

Browse files
Merge pull request #224 from SpinW/balzbugs
Fix bugs identified by user
2 parents eacac5a + 84529bc commit ba7a369

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

swfiles/sw_plotspec.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,10 @@
812812
iName = strsplit(strtrim(sprintf('I%d ',1:nMode)),' ');
813813
eName = strsplit(strtrim(sprintf('EN%d ',1:nMode)),' ');
814814
sName = strsplit(strtrim(sprintf('s%d ',1:nMode)),' ');
815-
815+
if ~isfield(T, sName)
816+
sName = strsplit(strtrim(sprintf('sigma%d ',1:nMode)),' ');
817+
end
818+
816819
dat.I = zeros(nMode,nQ);
817820
dat.E = zeros(nMode,nQ);
818821
dat.s = zeros(nMode,nQ);

tutorials/publish/tutorial12.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
end
7979

8080
horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
81-
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE);
81+
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE,'-all');
8282
cut1 = cut(horaceObj,[],[],[3.0 3.5]);
8383

8484
% We use the honest colormap cm_inferno.
@@ -90,4 +90,4 @@
9090
%%
9191
% Written by
9292
% Sandor Toth
93-
% 16-June-2014
93+
% 16-June-2014

tutorials/publish/tutorial12/tutorial12.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
<span class="comment">% Horace function.</span>
104104

105105
horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
106-
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{<span class="string">'component'</span>,<span class="string">'Sperp'</span>},dE);
106+
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{<span class="string">'component'</span>,<span class="string">'Sperp'</span>},dE,'-all');
107107
cut1 = cut(horaceObj,[],[],[3.0 3.5]);
108108

109109
<span class="comment">% We use the honest colormap cm_inferno.</span>
@@ -192,7 +192,7 @@
192192
% Horace function.
193193
194194
horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
195-
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE);
195+
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE,'-all');
196196
cut1 = cut(horaceObj,[],[],[3.0 3.5]);
197197
198198
% We use the honest colormap cm_inferno.
@@ -206,4 +206,4 @@
206206
% Sandor Toth
207207
% 16-June-2014
208208
##### SOURCE END #####
209-
--></body></html>
209+
--></body></html>

tutorials/publish/tutorial12/tutorial12.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dE = 0.15;
3535
<span class="comment">% Horace function.</span>
3636

3737
horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
38-
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{<span class="string">'component'</span>,<span class="string">'Sperp'</span>},dE);
38+
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{<span class="string">'component'</span>,<span class="string">'Sperp'</span>},dE,'-all');
3939
cut1 = cut(horaceObj,[],[],[3.0 3.5]);
4040

4141
<span class="comment">% We use the honest colormap cm_inferno.</span>
@@ -124,7 +124,7 @@ dE = 0.15;
124124
% Horace function.
125125

126126
horaceObj = d3d(tri.abc,[1 0 0 0],[0,0.005,1],[0 1 0 0],[0,0.005,1],[0 0 0 1],[0,0.1,10]);
127-
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE);
127+
horaceObj = disp2sqw_eval(horaceObj,@tri.horace,{'component','Sperp'},dE,'-all');
128128
cut1 = cut(horaceObj,[],[],[3.0 3.5]);
129129

130130
% We use the honest colormap cm_inferno.
@@ -138,4 +138,4 @@ colorbar
138138
% Sandor Toth
139139
% 16-June-2014
140140
##### SOURCE END #####</literal>
141-
-->
141+
-->

0 commit comments

Comments
 (0)