From 9569a50e5da3eaf38f840117638c14daf0fa1428 Mon Sep 17 00:00:00 2001 From: Laura Pfeiffer <laura.pfeiffer@kit.edu> Date: Tue, 7 Feb 2023 08:26:22 +0100 Subject: [PATCH] latest changes --- src/electrophysiology/assemble/Monodomain.cpp | 2 +- tools/evaluation/utility/latexTables.py | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/electrophysiology/assemble/Monodomain.cpp b/src/electrophysiology/assemble/Monodomain.cpp index 0d712c795..387aa7206 100644 --- a/src/electrophysiology/assemble/Monodomain.cpp +++ b/src/electrophysiology/assemble/Monodomain.cpp @@ -50,7 +50,7 @@ void Monodomain::updateExternalCurrent(const Vector &V) { } void Monodomain::SystemMatrix(const cell &c, const Vectors &VCW, Matrix &A) const { - MultiPartScalarElement E(VCW[0], *c,DomainPart(*c)); + MultiPa rtScalarElement E(VCW[0], *c,DomainPart(*c)); PartRowEntries A_c(A, E, DomainPart(*c)); Tensor S = ConductivityTensor(c); std::vector<double> vcw(M.Size()); diff --git a/tools/evaluation/utility/latexTables.py b/tools/evaluation/utility/latexTables.py index 21b8f4300..753dea221 100644 --- a/tools/evaluation/utility/latexTables.py +++ b/tools/evaluation/utility/latexTables.py @@ -408,6 +408,16 @@ class Table: block+='\\\\\n' block+=self.EndTabular() + return block + def writeICISVIRows(self,p,J,L,fL,nL,refname): + block = '' + (t,Ref)=read.getDataFromTXT(self.path,read.createFilename(L,J,self.m),p) + block+= '& \\multicolumn{2}{c|}{$\\|\\V^{j,\\ell}(\\cdot,'+self.getPointNamebyNumber(p,True)+')-\\V_'+refname+'^{'+str(J)+','+str(L)+'}(\\cdot,'+self.getPointNamebyNumber(p,True)+')\\|_\\Ltwonorm$}\\\\\n' + block+= '& \\multicolumn{'+str(len(fL)*len(self.lL))+'}{c}{$\\frac{\\|\\V^{j,\\ell}(\\cdot,'+self.getPointNamebyNumber(p,True)+')-\\V_'+refname+'^{'+str(J)+','+str(L)+'}(\\cdot,'+self.getPointNamebyNumber(p,True)+')\\|_\\Ltwonorm}{\\|\V^\\Ref_'+refname+'(\\cdot,'+self.getPointNamebyNumber(p,True)+')\\|_\\Ltwonorm}$}\n' + for name in nL: + block += '&'+ name + block +='\\\\\n' + return block def writeCompareRefList(self,p,J,L,fL,nL,refname = '\\Ref',divideNorm=False): block = '' @@ -1170,6 +1180,15 @@ class Table: if withToprule: block+='\\toprule\n' return block + def writeBeginSVIICITabular(self,nL): + block='' + block=self.writeBeginTable() + block+=self.writeTabelCapLab(cap,label) + block+='\\begin{tabular}{c|c' + for name in nL: + block+='|c' + block+='}\n' + return block def writeBeginSpaceAndTimeLengthTable(self,p,cap,label=''): block='' block=self.writeBeginTable() -- GitLab