File: 300.html

package info (click to toggle)
petsc 3.4.2.dfsg1-8.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 129,104 kB
  • ctags: 516,422
  • sloc: ansic: 395,939; cpp: 47,201; python: 34,788; makefile: 17,193; fortran: 16,251; f90: 1,592; objc: 954; sh: 822; xml: 621; java: 381; lisp: 293; csh: 241
file content (355 lines) | stat: -rw-r--r-- 11,328 bytes parent folder | download
1
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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
160
161
162
163
164
165
166
167
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
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
  <head> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/changes/300.html" />
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Documentation: Changes: 3.0.0</title>
  </head>
  <body bgcolor="#ffffff">
   <div id="version" align=right><b>petsc-3.4.2 2013-07-02</b></div>

    <h1>Documentation: Changes: 3.0.0</h1>

    

    <style type="text/css">
      h2 {
        color: red;
      }

      h4 {
        font-weight: bold;
        text-decoration: underline;
      }
    </style>

    <div id="main">

      <div align="center">
        <h2><a name="CHANGES">CHANGES in PETSc 3.0.0</a></h2>
      </div>

      <h4>General:</h4>

      <ul>
        <li>
          Changed the Matlab engine portion of the Matlab configure code to
          require a separate flag --with-matlab-engine
        </li>

        <li>
          Changed the Socket viewer to be the same as the binary viewer except
          for its creation
        </li>

        <li>
          Changed the Matlab Socket code to work the same as the Matlab binary
          reader except for its creation
        </li>

        <li>
          You can now replace the PetscVFPrintf() function pointer to redirect
          all stdout/stderr output in Windows for example.
        </li>

        <li>
          Removed MPICCommToFortran() and MPIFortranCommToC() since
          MPI_Comm_c2f() and f2c() are now always available.
        </li>

        <li>
          PetscOptionsInsertFile() now takes a MPI_Comm as the first argument
          and a final flag argument indicating if the file &nbsp;MUST be
          located. It is also changed to be more scalable, only the 0th process
          opens it and broadcasts the input to the other processes.
        </li>

        <li>
          Added PetscObjectIncrementTabLevel() to allow proper indenting of
          monitor output for imbedded solvers for multigrid levels, for block
          Jacobi, for SNES inside TS and KSP inside SNES etc.
        </li>
      </ul>

      <h4>Logging:</h4>

      <ul>
        <li>The int stage used in the PetscLogStageXXX() routines is now a PetscLogStage</li>

        <li>
          PetscLogEventRegister() and PetscLogStageRegister() now return the
          result in the final argument instead of the first
        </li>

        <li>
          PetscLogClassRegister() is changed to PetscClassIdRegister() and
          returns the classid in the final argument, not the first
        </li>

        <li>PetscEvent is now PetscLogEvent</li>
      </ul>

      <h4>config/configure.py:</h4>

      <ul>
        <li>Changed location of base makefiles to conf from bmake/common</li>
        <li>
          Changed location of generated base makefiles to $PETSC_ARCH/conf
          instead of bmake/$PETSC_ARCH
        </li>
        <li>Changed location of generated include files to $PETSC_ARCH/include</li>
        <li>Changed location of generated libraries (including from external packages) to $PETSC_ARCH/lib</li>
        <li>You will need to change include ${PETSC_DIR}/bmake/common/base to ${PETSC_DIR}/conf/base</li>
      </ul>

      <h4>IS:</h4>

      <ul>
        <li>
          ISPartitioningCount() now takes an additional argument, the length of
          the count array (that is the number of partitions).
        </li>
      </ul>

      <h4>Vec:</h4>

      <ul>
        <li>Added logical argument to VecSetOption() to toggle option in either way</li>

        <li>
          The PetscMap inside the Vec object is now allocated and reference
          counted and shared between vectors and matrices, this will decrease
          memory usage on systems with a large size.
        </li>
      </ul>

      <h4>VecScatter:</h4>
      <h4>Mat:</h4>

      <ul>
        <li>
          MatSetOption() now takes a final PetscTruth flag to toggle the
          option. The redundant options like MAT_NO_SYMMETRIC are removed
        </li>

        <li>
          The MatSetOption() options MAT_ROWS_SORTED, MAT_COLUMNS_SORTED are no
          longer needed and are removed.
        </li>

        <li>MatConvert() now uses the matrix prefix when using option -matconvert_type.</li>
        <li>The bdiag matrix formats have been removed</li>

        <li>
          MatTranspose() now takes a new second argument MatReuse; also to do
          an inplace transpose use MAT_REUSE_MATRIX and pass the address of the
          first argument as the third argument (you can no longer pass 0).
        </li>

        <li>
          MATPLAPACK is removed; instead so long as PETSc is
          config/configure.py with --download-plapack the MATMPIDENSE matrix
          will automatically use the parallel plapack solvers
        </li>

        <li>
          The "parallel direct solver" matrix types like<br> MATAIJSPOOLES are
          ALL gone. Now you use -pc_factor_mat_solver_package<br> spooles etc
          or PCFactorSetMatSolverPackage() or if working directly with<br>
          matrices, MatGetFactor(A,MATSPOOLES,...)
        </li>

        <li>
          Removed MatFDColoringSetRecompute(), now use
          MatFDSetFrequency(mat,-2) to have Jacobian computed at next Newton
          step but never again.
        </li>

        <li>
          Removed MatFDColoringSet/GetFrequency() and -mat_fd_coloring_freq
          since you can now use SNESSetLagJacobian() or -snes_lag_jacobian
        </li>

        <li>
          The PetscMap inside the Mat object is now allocated and reference
          counted and shared between vectors and matrices, this will decrease
          memory usage on systems with a large size.
        </li>

        <li>
          The first argument to MatXXXFactorSymbolic/Numeric() is now the
          factored matrix
        </li>

        <li>
          The fields global_rows,global_columns,local_rows,local_columns have
          been removed from the MatGetInfo() data. User MatGetSize(),
          MatGetLocalSize() to get that data
        </li>
      </ul>

      <h4>PC:</h4>

      <ul>
        <li>PCHasApplyTranspose() was renamed to PCApplyTransposeExists().</li>
        <li>Added much faster matrix converter to use hypre preconditioners for PETSc AIJ matrices</li>
        <li>ILU preconditioner now defaults to use shift to prevent zero pivot</li>
        <li>ICC preconditioner now defaults to use Manteuffel shift to force positive definiteness</li>
        <li>Added -pc_factor_shift_in_blocks and PCFactorSetShiftInBlocks() made default for ILU</li>

        <li>
          PCApplyRichardson() now returns two additional arguments, the number
          of iterations performed and the reason it finished.
        </li>
      </ul>

      <h4>KSP:</h4>

      <ul>
        <li>
          KSPSetConvergenceTest() now takes an optional final argument,
          destroy() that will be called to destroy the context passed in as the
          second to last argument
        </li>

        <li>
          KSPDefaultConverged() now has a KSPDefaultConvergedCreate() and
          KSPDefaultConvergedDestroy() that creates the default context to be
          passed KSPSetConvergenceTest() and the destroy to be passed in.
        </li>
        <li>
          Added KSPIBCGS a varient of Bi-CG-stab that has only
          1 synchronization point rather than 3 in the usual.
        </li>
      </ul>

      <h4>SNES:</h4>

      <ul>
        <li>
          SNESSetRhs() and SNESSetSolution() were removed. Use instead
          SNESSolve(snes, b, x) to pass right hand side (optional, can be
          PETSC_NULL) and solution (required).
        </li>

        <li>
          SNES now takes ownership of user-provided vector for right hand side
          and solution passed to SNESSolve(), and until the next SNESSolve() is
          called.
        </li>

        <li>
          SNES now takes ownership of user-provided vector for function
          evalutation passed to SNESSetFunction(), thus this vector can be
          safely destroyed after this call.
        </li>

        <li>
          SNESConverged_LS() and SNESConverged_LS() were removed. Use
          SNESDefaultConverged() or SNESSkipConverged() as convergence
          test.
        </li>

        <li>
          Option -snes_convergence_test was added, accepting values
          default|short, for setting SNESDefaultConverged() or
          SNESSkipConverged() as convergence test.
        </li>

        <li>
          Option -snes_no_convergence_test was removed. Use instead
          "-snes_convergence_test skip".
        </li>

        <li>
          Do not use the error PETSC_ERR_ARG_DOMAIN within your FormFunction()
          rather call SNESSetFunctionDomainError.
        </li>

        <li>The line search functions now take an additional argument xnorm.</li>

        <li>
          SNESSetConvergenceTest() takes another optional argument
          PetscErrorCode (*destroy)(void*) that will be called with
          SNESDestroy() to destroy the context.
        </li>

        <li>
          Added SNESSetLagPreconditioner(), -snes_lag_preconditioner, SNESGetLagPreconditioner()
        </li>

        <li>Added SNESSetLagJacobian(), -snes_lag_jacobian, SNESGetLagJacobian()</li>
      </ul>

      <h4>TS:</h4>
      <h4>DA:</h4>

      <ul>
        <li>Added DAGetNeighbors()</li>
        <li>Added DAGetOwnershipRanges()</li>
      </ul>

      <h4>DMMG:</h4>

      <ul>
        <li>
          Added DMMGSetFromOptions(), this can only be used in conjunction with
          DMMGSetSNES(). You should call this sometime after DMMGSetSNES() is
          called, otherwise the SNES/KSPSetFromOptions() does not get
          called.
        </li>

        <li>
          Removed -dmmg_snes_monitor since now -snes_monitor and
          -snes_monitor_short will now do the proper indenting so this is no
          longer needed
        </li>

        <li>
          Removed -dmmg_ksp_monitor since now -ksp_monitor[_short) and
          -mg_levels_ksp_monitor[_short) etc will handle the proper
          indenting.
        </li>

        <li>
          Removed -dmmg_jacobian_period since you can use
          -snes_lag_jacobian
        </li>
      </ul>

      <h4>PetscViewer:</h4>

      <ul>
        <li>added PETSC_VIEWER_STDOUT_(comm) for Fortran</li>

        <li>
          binary viewer now supports MPI IO for Vec loading and storing, use
          -viewer_binary_mpiio or PetscViewerBinarySetMPIIO() to enable
          it.
        </li>

        <li>
          Reworked the Matlab objects sreader and freader to be called
          PetscOpenSocket and PetscOpenFile, now PetscBinaryWrite and
          PetscBinaryRead can be used on the same socket connection to send
          matrix/vectors in both directions. See
          src/ksp/ksp/examples/tutorials/ex41.c and ex41.m
        </li>
      </ul>

      <h4>SYS:</h4>

      <ul>
        <li>
          PetscLogFlopsNoCheck() no longer exists; you can simply call
          PetscLogFlops() it no longer has a return in it.<br>
        </li>
      </ul>

      <h4><a href="http://www.mcs.anl.gov/petsc/miscellaneous/external.html">ExternalPackages</a>:</h4>

    </div>

    
  </body>
</html>