-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(squash) begin implementing yalta plan
Merge branch 'master' into yalta still need a dummy apfArray.h move apf::Array to vas::Array fun fact. every single one of our source files was getting assert() from an unnecessary #include in apfArray.h moving the instrumented malloc into noto changing pcu_memory.c to pcu_buffer.c moving pcu_protect into reel.c this actually depended on opening parallel files for the traces... I now have them all going to stderr... We'll see how much worse that is moving thread functionality into reel.c adding vas and reel headers to PCU HEADERS actually remove pcu_common.h break up the MIN/MAX macros, remove pcu_common.h update mds_smb.c to use reel_fail moving ceil/floor_log2 into pcu_coll.c it is the only user of those functions, they are not so common removing now-unneeded includes moving pcu_fail into reel.c moving pcu_malloc and friends into vas_malloc.c
- Loading branch information
Showing
135 changed files
with
777 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
#include "apfUserData.h" | ||
#include <cstdio> | ||
#include <cstdlib> | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
#include "apfShape.h" | ||
|
||
#include <list> | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#include "apf.h" | ||
#include "apfMesh.h" | ||
#include "apfShape.h" | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
#include "apfMesh2.h" | ||
#include "apfShape.h" | ||
#include <map> | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#include <PCU.h> | ||
#include "apfFieldData.h" | ||
#include "apfShape.h" | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include <apfCavityOp.h> | ||
#include <apf.h> | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
#include "apfMesh2.h" | ||
#include "apfCavityOp.h" | ||
#include "apf.h" | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
#include <gmi.h> | ||
#include <sstream> | ||
#include <apfGeometry.h> | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
#include "apfFieldData.h" | ||
#include <sstream> | ||
#include <fstream> | ||
#include <cassert> | ||
|
||
namespace apf { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright 2011 Scientific Computation Research Center | ||
* | ||
* This work is open source software, licensed under the terms of the | ||
* BSD license as described in the LICENSE file in the top-level directory. | ||
*/ | ||
|
||
#ifndef VAS_ARRAY_H | ||
#define VAS_ARRAY_H | ||
|
||
/** \file vasArray.h | ||
\brief compile-time size array */ | ||
|
||
#include <cstddef> | ||
|
||
namespace vas { | ||
|
||
/** \brief an array of N items of type T */ | ||
template <class T, std::size_t N> | ||
class Array | ||
{ | ||
public: | ||
/** \brief type::size for convenience */ | ||
enum { size = N }; | ||
/** \brief constructor: no default values */ | ||
Array() {} | ||
/** \brief copy constructor */ | ||
Array(Array<T,N> const& other) {copy(other);} | ||
/** \brief element destruction already automatic */ | ||
~Array() {} | ||
/** \brief copy array contents. | ||
\details this is one of the advantages | ||
of vas::Array over C arrays: they are | ||
copy-constructible and assignable */ | ||
Array<T,N>& operator=(Array<T,N> const& other) | ||
{ | ||
copy(other); | ||
return *this; | ||
} | ||
/** \brief mutable index operator */ | ||
T& operator[](std::size_t i) {return elements[i];} | ||
/** \brief immutable index operator */ | ||
T const& operator[](std::size_t i) const {return elements[i];} | ||
protected: | ||
void copy(Array<T,N> const& other) | ||
{ | ||
for (std::size_t i=0; i < N; ++i) | ||
elements[i] = other.elements[i]; | ||
} | ||
T elements[N]; | ||
}; | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
#include "crvBezier.h" | ||
#include "crvTables.h" | ||
#include <cassert> | ||
|
||
namespace crv { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
#include "apfFieldData.h" | ||
#include <sstream> | ||
#include <fstream> | ||
#include <cassert> | ||
|
||
namespace crv { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include "dspGraphDistance.h" | ||
#include <PCU.h> | ||
#include <cassert> | ||
|
||
namespace dsp { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
#include "maInput.h" | ||
#include <apfShape.h> | ||
#include <cstdio> | ||
#include <cassert> | ||
|
||
namespace ma { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
#include "maRefine.h" | ||
#include "maShape.h" | ||
#include <sstream> | ||
#include <cassert> | ||
|
||
namespace ma { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
#include "maShape.h" | ||
|
||
#include <cstdio> | ||
#include <cassert> | ||
|
||
namespace ma { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
#include "maCrawler.h" | ||
#include "maRefine.h" | ||
#include "maLayer.h" | ||
#include <cassert> | ||
|
||
namespace ma { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
#include "maLayer.h" | ||
#include "maSnap.h" | ||
#include "maShape.h" | ||
#include <cassert> | ||
|
||
namespace ma { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
#include <cstdio> | ||
#include <sstream> | ||
#include <cassert> | ||
|
||
namespace ma { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
#include "maSnap.h" | ||
#include "maLayer.h" | ||
#include <apf.h> | ||
#include <cassert> | ||
|
||
namespace ma { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
#include "maShape.h" | ||
#include "maAdapt.h" | ||
#include <apfShape.h> | ||
#include <cassert> | ||
|
||
namespace ma { | ||
|
||
|
Oops, something went wrong.