]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
More patches for MS Windows.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Jun 2012 11:25:47 +0000 (11:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Jun 2012 11:25:47 +0000 (11:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@25636 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in
deal.II/include/deal.II/base/config.h.in
deal.II/source/base/logstream.cc
deal.II/source/base/timer.cc
deal.II/source/hp/dof_handler.cc

index 03b4407238de8872db50ef2ae40ee254da22ff19..e80fe5e008cc1cf4a620b7a73127f495f04fc6f9 100644 (file)
@@ -850,6 +850,16 @@ AH_BOTTOM(
 #  define DEAL_II_MSVC
 #endif
 
+/**
+ * Using pthreads under windows as a non-static library requires the following
+ * preprocessor switch to be undefined.
+ */
+#ifdef DEAL_II_MSVC
+#  if defined(PTW32_STATIC_LIB)
+#    undef PTW32_STATIC_LIB
+#  endif
+#endif
+
 /*
  * There is an annoying problem in the Trilinos header ml_config.h: It
  * #define's HAVE_INTTYPES_H but doesn't give the symbol a value. This
index d7370e47bec047304cd4815e2babcd2de945fb94..68f063e9938d7291db8cb74474a98d03096dbe3f 100644 (file)
 #  define DEAL_II_MSVC
 #endif
 
+/**
+ * Using pthreads under windows as a non-static library requires the following
+ * preprocessor switch to be undefined.
+ */
+#ifdef DEAL_II_MSVC
+#  if defined(PTW32_STATIC_LIB)
+#    undef PTW32_STATIC_LIB
+#  endif
+#endif
+
 /*
  * There is an annoying problem in the Trilinos header ml_config.h: It
  * #define's HAVE_INTTYPES_H but doesn't give the symbol a value. This
index ba6854c99fdc52aec0ad119a7e1ae9f854d8ff9c..94729e15f624179981b114e3b011b47a3d09114f 100644 (file)
@@ -338,6 +338,7 @@ LogStream::print_line_head()
         }
     }
 #else
+//TODO[BG]: Do something useful here
   double utime = 0.;
 #endif
 
index 3947d792115f2197336513f10f202cd487452018..86ad311fb0af6a2c5e792fc961374c0f3f98e36d 100644 (file)
@@ -97,7 +97,7 @@ namespace
                          &exitTime, &sysTime, &cpuTime))
        {
          return (double)(((unsigned long long)cpuTime.dwHighDateTime << 32)
-                         | cpuTime.dwLowDateTime) / 10e6;
+                         | cpuTime.dwLowDateTime) / 1e6;
        }
       return 0;
     }
@@ -233,6 +233,7 @@ double Timer::wall_time () const
   if (running)
     {
 #ifdef DEAL_II_MSVC
+//TODO[BG]: Do something useful here
       return 0;
 #else
       struct timeval wall_timer;
index 09b2fbef5d80d245ebcedacfc5e532b93648590d..2548bb351646ea55261ba4d86ce0b5d8048fe588 100644 (file)
@@ -323,7 +323,7 @@ namespace internal
           template <int spacedim>
           static
           unsigned int
-          distribute_dofs_on_cell (const typename DoFHandler<1,spacedim>::active_cell_iterator &cell,
+          distribute_dofs_on_cell (const typename dealii::hp::DoFHandler<1,spacedim>::active_cell_iterator &cell,
                                    unsigned int          next_free_dof)
             {
               const unsigned int dim = 1;
@@ -368,7 +368,7 @@ namespace internal
           template <int spacedim>
           static
           unsigned int
-          distribute_dofs_on_cell (const typename DoFHandler<2,spacedim>::active_cell_iterator &cell,
+          distribute_dofs_on_cell (const typename dealii::hp::DoFHandler<2,spacedim>::active_cell_iterator &cell,
                                    unsigned int          next_free_dof)
             {
               const unsigned int dim = 2;
@@ -431,7 +431,7 @@ namespace internal
           template <int spacedim>
           static
           unsigned int
-          distribute_dofs_on_cell (const typename DoFHandler<3,spacedim>::active_cell_iterator &cell,
+          distribute_dofs_on_cell (const typename dealii::hp::DoFHandler<3,spacedim>::active_cell_iterator &cell,
                                    unsigned int          next_free_dof)
             {
               const unsigned int dim = 3;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.