Commit 3f38cd93 authored by Tomáš Jakubec's avatar Tomáš Jakubec
Browse files

log fix for linux system

parent 8996fc96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.0, 2019-10-07T13:49:40. -->
<!-- Written by QtCreator 4.10.0, 2019-10-07T18:37:14. -->
<qtcreator>
 <data>
  <variable>EnvironmentId</variable>
+3 −3
Original line number Diff line number Diff line
@@ -511,7 +511,7 @@ void testMesh3D() {
    DBGMSG("3D edge orientation");
    temp1::MeshApply<2, 1, 3>::apply(mesh3,[&mesh3](unsigned int , unsigned int , size_t faceIndex, size_t edgeIndex){
        size_t iA = mesh3.getEdges().at(edgeIndex).getVertexAIndex(), iB =mesh3.getEdges().at(edgeIndex).getVertexBIndex();
        DBGVAR(faceIndex,
        HTMLDBGVAR(faceIndex,
               edgeIndex,
               iA, iB,
               temp1::edgeIsLeft(mesh3,faceIndex, edgeIndex));
@@ -767,13 +767,13 @@ int main()
{
    //testMesh2D();
    //testMesh2DLoadAndWrite();
    //testMesh3D();
    testMesh3D();
    //test3DMeshDeformedPrisms();
    //testMeshDataContainer();
    //testTemplate();
    //UnstructuredMesh<5, size_t, double, 6,5,4> m;
    //m.ComputeElementMeasures();
    testDebug();
    //testDebug();
    //test3DMeshLoad();

}
+2 −2
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ public:

#ifdef __linux__
        std::cerr << "In file " << cppFile << " at line " << line << " variable \033[0;33m" << name << "\033[0m has value of \033[0;31m";
        _writeWar(value);
        VariableExport::_writeWar(std::cerr, value);
        std::cerr << "\033[0m\n";
#else
        std::cerr << "In file " << cppFile << " at line " << line << " variable " << name << " has value of ";
@@ -54,7 +54,7 @@ public:

#ifdef __linux__
        std::cerr << "In file " << cppFile << " at line " << line << " variable \033[0;33m" << name << "\033[0m has value of \033[0;31m";
        _writeWar(value);
        VariableExport::_writeWar(std::cerr, value);
        std::cerr << "\033[0m\n";
#else
        std::cerr << "In file " << cppFile << " at line " << line << " variable " << name << " has value of ";
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ struct VariableExport {


    template<typename T1, typename T2>
    static auto _writeWar(std::ostream& ost, const std::pair<T1,T2>& b)
    static auto _writeWar(std::ostream& ost, const std::pair<T1,T2>& b) -> void
    {
        ost << "{ ";
        _writeWar(ost, b.first);