Regression

projectroot.check_format_cpp (from CTest)

Failing for the past 1 build (Since #109 )
Took 1.9 sec.

Stacktrace

--- a/var/jenkins/workspace/Cap-experimental/cpp/source/default_inspector.cc
+++ b/var/jenkins/workspace/Cap-experimental/cpp/source/default_inspector.cc
@@ -21,7 +21,7 @@
 extract_data_from_super_capacitor(EnergyStorageDevice *device)
 {
   std::map<std::string, double> data;
-  #ifdef WITH_DEAL_II
+#ifdef WITH_DEAL_II
   if (auto super_capacitor = dynamic_cast<SuperCapacitor<dim> *>(device))
   {
     // get some values from the post processor
@@ -72,13 +72,13 @@
   {
     throw std::runtime_error("Downcasting failed");
   }
-  #endif
+#endif
   return data;
 }
 
 void DefaultInspector::inspect(EnergyStorageDevice *device)
 {
-  #ifdef WITH_DEAL_II
+#ifdef WITH_DEAL_II
   if (dynamic_cast<SuperCapacitor<2> *>(device))
   {
     _data = extract_data_from_super_capacitor<2>(device);
@@ -91,7 +91,7 @@
   {
     // do nothing
   }
-  #endif
+#endif
 }
 
 std::map<std::string, double> DefaultInspector::get_data() const

--- a/var/jenkins/workspace/Cap-experimental/cpp/test/test_energy_storage_device.cc
+++ b/var/jenkins/workspace/Cap-experimental/cpp/test/test_energy_storage_device.cc
@@ -66,10 +66,10 @@
       _type = "SeriesRC";
     else if (dynamic_cast<cap::ParallelRC *>(device) != nullptr)
       _type = "ParallelRC";
-    #ifdef WITH_DEAL_II
+#ifdef WITH_DEAL_II
     else if (dynamic_cast<cap::SuperCapacitor<2> *>(device) != nullptr)
       _type = "SuperCapacitor";
-    #endif
+#endif
     // if we make ExampleInspector friend of the derived
     // class for the EnergyStorageDevice we could virtually
     // do anything

2 file(s) not formatted properly:
    /var/jenkins/workspace/Cap-experimental/cpp/source/default_inspector.cc
    /var/jenkins/workspace/Cap-experimental/cpp/test/test_energy_storage_device.cc

Standard Output

--- a/var/jenkins/workspace/Cap-experimental/cpp/source/default_inspector.cc
+++ b/var/jenkins/workspace/Cap-experimental/cpp/source/default_inspector.cc
@@ -21,7 +21,7 @@
 extract_data_from_super_capacitor(EnergyStorageDevice *device)
 {
   std::map<std::string, double> data;
-  #ifdef WITH_DEAL_II
+#ifdef WITH_DEAL_II
   if (auto super_capacitor = dynamic_cast<SuperCapacitor<dim> *>(device))
   {
     // get some values from the post processor
@@ -72,13 +72,13 @@
   {
     throw std::runtime_error("Downcasting failed");
   }
-  #endif
+#endif
   return data;
 }
 
 void DefaultInspector::inspect(EnergyStorageDevice *device)
 {
-  #ifdef WITH_DEAL_II
+#ifdef WITH_DEAL_II
   if (dynamic_cast<SuperCapacitor<2> *>(device))
   {
     _data = extract_data_from_super_capacitor<2>(device);
@@ -91,7 +91,7 @@
   {
     // do nothing
   }
-  #endif
+#endif
 }
 
 std::map<std::string, double> DefaultInspector::get_data() const

--- a/var/jenkins/workspace/Cap-experimental/cpp/test/test_energy_storage_device.cc
+++ b/var/jenkins/workspace/Cap-experimental/cpp/test/test_energy_storage_device.cc
@@ -66,10 +66,10 @@
       _type = "SeriesRC";
     else if (dynamic_cast<cap::ParallelRC *>(device) != nullptr)
       _type = "ParallelRC";
-    #ifdef WITH_DEAL_II
+#ifdef WITH_DEAL_II
     else if (dynamic_cast<cap::SuperCapacitor<2> *>(device) != nullptr)
       _type = "SuperCapacitor";
-    #endif
+#endif
     // if we make ExampleInspector friend of the derived
     // class for the EnergyStorageDevice we could virtually
     // do anything

2 file(s) not formatted properly:
    /var/jenkins/workspace/Cap-experimental/cpp/source/default_inspector.cc
    /var/jenkins/workspace/Cap-experimental/cpp/test/test_energy_storage_device.cc