]> git.leopard-lacewing.eu Git - bacc.git/commitdiff
[src] mark - AnIso Fehlerhafte markierung behoben
authortreecity <treecity@26120e32-c555-405d-b3e1-1f783fb42516>
Thu, 26 Jan 2012 13:53:09 +0000 (13:53 +0000)
committertreecity <treecity@26120e32-c555-405d-b3e1-1f783fb42516>
Thu, 26 Jan 2012 13:53:09 +0000 (13:53 +0000)
[src] unnötige Ausgaben entfernt

git-svn-id: https://drops.fb12.tu-berlin.de/svn/bacc/trunk@80 26120e32-c555-405d-b3e1-1f783fb42516

src/A_plots.m
src/A_step.m
src/computeEstSlpMuTilde.m
src/mark.m
src/plotShape.m

index deecfe79e056888e9c5a18442f4644c1de3a4b7c..8d15a19f5df418329a3096d2480e185a102b527b 100644 (file)
@@ -56,14 +56,15 @@ end
 if step<1
     disp ('Error: No Data to show.')
 else
-    
-    sol = neville2(1./X(round(1):12,12)',G_D(round(1):12,12)',0)
+    G_D
+    sol = neville2(1./X(round(1):end,3)',G_D(round(1):end,3)',0);
+    sol = 8.28466;
 
 figure(4)
 loglog(X(:,[2+(0:step-1)*3]),G_D(:,[2+(0:step-1)*3]),'--o')
 hold on
 loglog(X(:,1),[20*X(:,1).^(-1/2),6*X(:,1).^(-1/4),5*X(:,1).^(-3/4)],'-.')
-loglog(X(:,[3+(0:step-1)*3]), sqrt(sol -G_D(:,3+(0:step-1)*3))*G_D(1,2)/sqrt(sol-G_D(1,3)),'-*')
+loglog(X(:,[3+(0:step-1)*3]), sqrt(abs(sol -G_D(:,3+(0:step-1)*3)))*G_D(1,2)/sqrt(abs(sol-G_D(1,3))),'-*')
 hold off
 
 title('Fehler')
@@ -71,7 +72,7 @@ xlabel('Elemente');
 ylabel('Schaetzer');
 legend({leg2{:}...
       'N^{-1/2}'  'N^{-1/4}'  'N^{-3/4}'...
-     leg3{:}} ,'location','eastoutside','box', 'off');
+     leg3{:}} ,'location','southwest','box', 'off');
 
 print('-r600','-depsc',[printt '_error.eps'])
  
index 78cee0e8956e8cff4f5403f3830f47963f26648b..24d972d224baa1c42c54eb2f12927413a8a8d62a 100644 (file)
@@ -41,9 +41,7 @@ time = zeros(1,3);
 
     xe_fine = x_fine'*A_fine*x_fine;
 
-    ind = computeEstSlpMuTilde(x_fine,G_C,G_E,f2s)
-    length(ind) 
-    size(elements_fine,1)
+    ind = computeEstSlpMuTilde(x_fine,G_C,G_E,f2s);
 
     data = [data type(i) sqrt(sum(ind)) xe_fine];
   end
@@ -61,7 +59,7 @@ time = zeros(1,3);
   title('Elemente mit Fehlerschaetzer')
   colorbar
   view(2)
-%  plotMark(find(marked>1),G_C,G_E);
+  plotMark(find(marked>1),G_C,G_E);
   
 %   clear 'coordinates_fine' 'elements_fine' 'neigh_fine' 'f2s'
   
index de2e61f97c94ae565cda505881306ac9a043aa74..78e40ce0f8b2ce10c1b82b75d139abb1f828cfc6 100644 (file)
@@ -14,7 +14,7 @@ end
 tmp = abs([sum(coo(ele(:,2),:)-coo(ele(:,1),:),2)...
   sum(coo(ele(:,4),:)-coo(ele(:,1),:),2)]);
 hmin = min(tmp,[],2);
-hmax = max(tmp,[],2);
+hmax = max(tmp,[],2);
 
 % len = min(abs([sum(coo(ele(:,2),:)-coo(ele(:,1),:),2)...
 %   sum(coo(ele(:,4),:)-coo(ele(:,1),:),2)]),[],2);
index 61d9823640e6ebf17406441eb48d74d8096e6f2b..f2c704b9a78d93f089ac1509949fc2dc5d83b9f8 100644 (file)
@@ -27,7 +27,7 @@ if(theta <1)
     ell = find(sum_ind  >= sum_ind(end) * theta,1);
     
     %Symertrisieren
-    ell = ell + find(abs(( sum_ind(ell)-sum_ind(ell:end)))/sum_ind(ell)>10^-2,1);
+    ell = ell + find(abs(( sum_ind(ell)-sum_ind(ell:end)))/sum_ind(ell)>10^-2,1);
 
     t1(idx(ell+1:end)) = 1;   % Nicht verfeinert
 end
@@ -36,9 +36,9 @@ end
 %% Wie muss verfeinert werden
 if(eps > 0) % Horizontal oder Vertikal
     t3 = (eta*abs(Ct(3,:)) >= sqrt(Ct(2,:).^2+Ct(4,:).^2));
-    REF(t3) = 3;
+    REF(t3-t1==1) = 3;   
     t4 = (eta*abs(Ct(4,:)) >= sqrt(Ct(2,:).^2+Ct(3,:).^2));
-    REF(t4) = 4;
+    REF(t4-t1==1) = 4;
 end
 REF(~(t4+t3+t1)) = 2;   % Rest wird Horizontal UND Vertikal geteilt
 
index a312b656eb4d285291912d771ed336efde4696cd..d9fc2e563eb7f03bcbe0a515abfa664d8f29f838 100644 (file)
@@ -27,9 +27,9 @@ elseif(optargin>=1)
         if(optargin==2 && length(varargin{2})==size(elements,1))
             e = 2;
             color = reshape(varargin{2},length(varargin{2}),1);
-            maxc = max(color);
-            minc = min(color);
-            color = (color - minc)/maxc;
+            maxc = max(color);
+            minc = min(color);
+            color = (color - minc)/maxc;
 %             col = [color ones(length(color),2) ]
             
         else