# 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
# 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
&exitTime, &sysTime, &cpuTime))
{
return (double)(((unsigned long long)cpuTime.dwHighDateTime << 32)
- | cpuTime.dwLowDateTime) / 10e6;
+ | cpuTime.dwLowDateTime) / 1e6;
}
return 0;
}
if (running)
{
#ifdef DEAL_II_MSVC
+//TODO[BG]: Do something useful here
return 0;
#else
struct timeval wall_timer;
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;
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;
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;