TODO.txt 16.4 KB
Newer Older
Kirill Terekhov's avatar
Kirill Terekhov committed
1

Kirill Terekhov's avatar
Kirill Terekhov committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
 :
0) ()        ,   data()
1) ()  erase  array  ,  resize'
2) ()      ReferenceArray
3) ()     char,     short,    -   ,   - 
4) ()     
5) (  )         
6) ()      
7) ()     chunk_bulk_array -       chunk_array -  ,   
8) ()        
8.1)         
10) ()        
10.-1) ()     Element    getNodes,getEdges,getFaces,getCells
             
10.0) (, )     array,          
10.1) ()     adjacent      (     ID ,    )
10.1.0) (,   , 10.6)       - array ( reference_array)  dynarray (   )
10.1.1) ()        
10.2) ()  ElementSet -     , LowConn  ,    , 
	HighConn   ,  1-  -  ,  -  ,  -    (   INMOST_experimental)
	 tag_set_size,     ,   LowConn  
	    ?
              ,   
10.2.0) ()  ,  
          :
             -    ,     ,  ,  ,  insert
             -   array,  ,  swap    array
          ,   
10.2.1) ()    - , , ,       10.1
               -    ,   
            
10.2.2) ()  ApplyModification
10.2.3) ()   VTK
10.2) ()         ID
10.3) ()    Cell, Face, Edge, Node, ElementSet -      ,   ID    
10.4) () Cell,Face,Edge,Node,ElementSet    ID
10.5) () reference_array     
10.6) ()  createCell, CreateFace.. -   TieElement  new,       10.3
11) () Markers, HighConn, LowConn -    TagManager, ,  ,      
26) ()   
26.1) (     )        radix (  INMOST_experimental)
       25*n    8- ,        16  
     17*n   11- ,     131  
27) ()   Read*   pmf,   
28) ()  std::vector     array
29) ()  std::vector  array   
31) () TagManager & TagManager::assign(Mesh * m, TagManager const & other)          
33) ()  ElementNum,    ElementType   6 
34) () Storage      ,   
36) ( ) ,      Storage     Mesh
50) ()   container.hpp enumerator  size_type
51) ()         container.hpp (  iterator_category?)
41) ( )  HighConn, LowConn  ,        
44) ( )  PackElementsData         tag
46) ( )   .       ,  




14)   ReferenceArray?

16)  parallel_storage  
17)   ?


18)      
19)      (   ,     )
20)         
21)  /-      (kd    examples/OldDrawGrid)
22) ResolveShared       
23)       ,    
24)      
25) ,     
30)  - sort  ReorderApply   ,   chunk_array    
    ReorderApply  radix-?
32)      ,   ,   Cell, Face,  Edge  Node 
35)  Bridge* 
37)      container.hpp,        
38)    GatherBoundaryFaces/GatherInteriorFaces   
39) CastRay    ,     
40)     ?
42)    Inside  discr_common.cpp
43)    RestoreCellNodes?
45)           ?
                 . (    )
47)     ,       ,       ?
49)     -    
           
         
      ,        
     ResolveShared
     ModificationResolve
52) ,  radix    big-endian 
53)     SortByGlobalID,   globalid  
54)      ( unit tests)
Kirill Terekhov's avatar
Fixes  
Kirill Terekhov committed
97
55)  mpi_send/mpi_recv           -       
Kirill Terekhov's avatar
Fixes  
Kirill Terekhov committed
98 99 100 101 102 103 104 105 106
56) Enumerate with mask should accept MarkerType select to select elements
57) GlobalID service class with different operation options to help pick new global ids when mesh is modified locally
    options:
     a) global id continuous among processors
     b) global id may have gaps but local interval for each processor is bounded
     c) global id is just a unique number

58)     vtk-   "VTK_WRITE_SETS_TO_FILES" = "YES"

Kirill Terekhov's avatar
Kirill Terekhov committed
107

Kirill Terekhov's avatar
Fixes  
Kirill Terekhov committed
108
7.MSPP: () : , , 
Kirill Terekhov's avatar
Kirill Terekhov committed
109
8.MSPP: 
Kirill Terekhov's avatar
Fixes  
Kirill Terekhov committed
110
9.MSPP: ()    visual studio
Kirill Terekhov's avatar
Kirill Terekhov committed
111
10.MSPP:        (    )
Kirill Terekhov's avatar
Fixes  
Kirill Terekhov committed
112
11. ()      
Kirill Terekhov's avatar
Kirill Terekhov committed
113
12.    (,   )
Kirill Terekhov's avatar
Fixes  
Kirill Terekhov committed
114
12. () MSPP:        Mesh
Kirill Terekhov's avatar
Kirill Terekhov committed
115 116 117 118
13. MSPP:   Redistribute!!! ExchangeGhost

13. INMOST / MMTK = Mathematical Modelling ToolKit / NSTK

Kirill Terekhov's avatar
Fixes  
Kirill Terekhov committed
119
() last_created_element -  
Kirill Terekhov's avatar
Kirill Terekhov committed
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159


 
1)      -   ,
         ( ),  
    -        
        ,     
  -      
2) small_hash -> dynarray
3)    
4)           
5)   parent()           
6)      
7)   ,  []         
8)        
9)            , 
     (        )
10)    ,      
11)       LLVM  asmjit
12)  openmp 
13)  opencl ,  openmp       
14)        

 
1) -

 
1)     
2)  ILUC2 
3)    /,     
4)    E,F   
5)       EU^-1 L^-1F
6)        
7)      (openmp) 
8)  (openmp)  EU^-1, L^-1F     
9)    nicole spillane
10)    ,       
11)        amls
12)       

Kirill Terekhov's avatar
Fixes  
Kirill Terekhov committed
160 161 162 163 164 165 166 167
13)     Matrix  Row:
Row::MergeRows(linked_list_storage, row b 
Matrix::MergeRow(alpha, row & a, real beta, row &b)
14)  CSRMatrix, CSRRow
15)  Matrix -> CSRMatrix
16) OrderInfo    CSRMatrix
17) 

Kirill Terekhov's avatar
Kirill Terekhov committed
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195

solver:
read mc64
read nested dissection
try to postpone ReorderEF to the end of run

5.MSPP:     
6.MSPP:    
 6.0  bicgs(l)
6.0 OrderInfo -> ASM_preconditioner?
6.0.1 OrderInfo.PrepareMatrix(A,levels) -> ASM_preconditioner(A,levels) : Method
6.0.3 OrderInfo.PrepareVector(vector) -> Matrix.PrepareVector(vector)
6.0.4 OrderInfo.Update(vector) -> Matrix.Update(vector)
6.0.5 orderInfo.Accumulate(vector) -> Matrix.Accumulate(vector)
6.1     (,  MPI_Waitall->MPI_Waitsome)
6.2 Update(vector) -> UpdateBegin, UpdateEnd,     ,     (INIT,PREC,MATVEC)
6.3    (?)    ilu2 ( superlu?)
6.3.1     
info->PrepareMatrix(A,0)

6.3.2    
6.4    tau 
6.5        
6.6   superlu   
6.7    -    ..



Kirill Terekhov's avatar
Kirill Terekhov committed
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
//FOR 2D
// Node -> Vertex
// Edge -> Vertex
// Face -> Line, Curve
// Cell -> Tri, Quad, Polygon, MultiLine

//FOR 3D
// Node -> Vertex
// Edge -> Line, Curve
// Face -> Tri, Quad, Polygon, MultiLine
// Cell -> Tet, Hex, Prism, Pyramid, Polyhedron, MultiPolygon



//TODO:


1D???


//serial
//1.0 read/write formats
//	1.1 read gmv
//	1.2 read different kinds of vtk besides unstructured
//	1.3	read/write xml vtk formats

//  1.4 pmf: print error when markers cannot be represented in current type and data was lost
//  1.5 pmf: save hide_marker, new_marker values
//  1.6 pmf: save topology checking information


//2. enchance iterators
// iterators should return pointers or references?

//3. geometry.cpp
// 3.0 decide how FixNormalOrientation should update geometric data
// 3.1 replace calculation of normale by hyperplane equation for any dimension??
// 3.2 correct Inside function to check weather point inside Segment, Polygon
// 3.3 dynamically balanced obtree or octree or kd-tree to query elements by position


//4. (done, need check) add some low-level mesh modification procedures to elements
//	5.1 add some high-level mesh modification procedures: split by plane, 
//  5.2 csg: difference, union, intersection
//  5.3 calculate volume for concave elements, choose elements by minimum volume, not minimum number of elements in incident_matrix class (modify.cpp)

//5. reduce size used by sparse data

//6. new ElementSet class, derived from Element class
// 6.1 support ierarhy

//7. algorithm that checks topology on element creation
// 7.1 complete unimplemented tests for star-shaped objects, concavity

//parallel:
//1. algorithm in EndModification or ResolveModification to keep the mesh in parallel consistent state after element creation/deletion
//	1.1 restore contiguous global id

//2. test algorithm that checks for halo in ExchangeMarked, if performance increases

//3. decide how to exchange ElementSets between processors

//4. exchange data of type DATA_REFERENCE, by GlobalID and ElementType

//5. mesh_file.cpp
//  5.1 on parallel load, when there are more processors then parts in mesh - duplicate mesh on other processors??
//  5.2 when mesh is duplicated over many processors use local clusterization algorithm in ResolveShared

// shared parallel
//1. avoid markers in nbAdjElements, getAdjElements, getNodes, getEdges, getFaces, getCells, BridgeAdjacency

// partitioner:
//1. implement K-means clustering

//solver:
//0. workaround for overlapping vertices and matrices

//1. read TODO on top of solver_*.hpp

//autodiff:
//1. read TODO on top of INMOST_autodiff.h


//TODO:


// Recheck computation of derivatives!!!!
// Detect similar parts of the tree in Automatizator
// Restructure tree expressions
// Intorduce multivariate tables
// Generate opencl code

// Make so that stencil may be represented by tags, by set or by callback_function

//RegisterTable and table implementation should account for boundary conditions beyond data




//SOLVER todo:

//TODO:
// how to calculate diagonal perturbation?
// how to calculate schur complement faster
// 
// done! implement crout-ILU from 
//   Documents/Read/solver/crout/crout.pdf to ILUC_preconditioner
// done! implement condition estimation for |L^{-1}| and |U^{-1}| and adaptive tau for ILUC_preconditioner from 
//   Documents\Read\solver\Read_now\bollhofer_siam.pdf
// done! try to make ILUC2_preconditioner - second order ILU from ILUC_preconditioner
// done! implement diagonal pivoting for ILUC - maybe need to update diagonal at every step
//   goto references [7],[10]-(data structure!) from
//   Documents\Read\solver\crout\crout.pdf
// return dropped values to diagonal if control vector is provided from
//   Documents\Read\solver\stabilization\milut.pdf
// try to apply dropping while forming linked list,should correctly calculate condition estimates 

// Calculate schur complement faster:
//   Documents\Read\solver\sparse_matmul\sparse.pdf

// in ILUC_preconditioner, replace matrix structures by CSR, estimate number of nonzeros in rows/cols
// before filling, if necessery (how?)