File: 38.html

package info (click to toggle)
petsc 3.10.3%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 209,064 kB
  • sloc: ansic: 587,333; python: 29,696; makefile: 12,445; fortran: 11,626; f90: 9,677; cpp: 8,768; sh: 1,027; xml: 621; objc: 445; csh: 194; java: 13
file content (190 lines) | stat: -rw-r--r-- 11,920 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

 <!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/38.html" />
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Documentation: Changes: 3.8</title>
  </head>
  <body bgcolor="#ffffff">
   <div id="version" align=right><b>petsc-3.10.3 2018-12-18</b></div>
   <div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.10.3 v3.10.3 docs/changes/38.html "><small>Report Typos and Errors</small></a></div>

    <h1>Documentation: Changes: 3.8</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 the PETSc 3.8 Version</a></h2>
      </div>

      <h4>General:</h4>
      <h4>Configure/Build:</h4>
      <ul>
        <li>removed with-mpiuni-fortran-binding option</li>
        <li>removed with-fortran-interfaces option</li>
        <li>removed with-fortran-datatypes option</li>
        <li>  Added --download-openblas --download-openblas-64-bit-blas-indices</li>
      </ul>
      <h4>IS:</h4>
      <ul>
        <li>Changed IS_COLORING_GHOSTED to IS_COLORING_LOCAL to match convention.</li>
        <li>Added ISRenumber to renumber an IS into a contiguous set.</li>
        <li>ISGlobalToLocalMappingType is now ISGlobalToLocalMappingMode.</li>
        <li>Added ISGlobalToLocalMappingSetType() to change the algorithm used to apply the mapping. Choices are ISGLOBALTOLOCALMAPPINGBASIC (faster) or
          ISGLOBALTOLOCALMAPPINGHASH (for large problems, much more scalable in memory usage)
      </ul>
      <h4>PetscDraw:</h4>
      <h4>PetscRandom:</h4>
      <ul>
        <li>Added PETSCRANDOM123, a wrapper to the counter-based random number generator <a href="http://www.deshawresearch.com/resources_random123.html">Random123</a>.</li>
      </ul>
      <h4>PF:</h4>
      <h4>Vec:</h4>
      <h4>VecScatter:</h4>
      <h4>PetscSection:</h4>
      <h4>Mat:</h4>
      <ul>
        <li>Added a new argument in MatCreateLRC() to express the low-rank correction as A+U*C*V'.</li>
        <li>MatTranspose() now properly handles MAT_INITIAL_MATRIX,
        MAT_REUSE_MATRIX, MAT_INPLACE_MATRIX.</li>
        <li>Renamed MatCreateSubMatrix() to MatCreateSubMatrixVirtual(). </li>
        <li>Renamed MatSubMatrixUpdate() to MatSubMatrixUpdateVirtual(). </li>
        <li>Renamed MatGetSubMatrices() to MatCreateSubMatrices(). </li>
        <li>Added MatDestroySubMatrices().</li>
        <li>Renamed MatGetSubMatricesMPI() to MatCreateSubMatricesMPI(). </li>
        <li>Renamed MatGetSubMatrix() to MatCreateSubMatrix(). </li>
        <li>Renamed MatGetSubMatrixOption() to MatCreateSubMatrixOption(). </li>
        <li>MatSetOption(mat,MAT_IGNORE_ZERO_ENTRIES,PETSC_TRUE) no longer applies to zero values set or added to the matrix diagonal, they are now not ignored and are included in the matrix nonzero structure. This is useful for Jacobians passed to TS. </li>
        <li>Added MatFactorSchurStatus. MatFactorGet/Restore/CreateSchurComplement now take an extra status argument. </li>
        <li>Added MatMatSolveTranspose to solve transposed linear systems for multiple right-hand sides. </li>
        <li>Added MATAIJMKL and MATBAIJMKL to facilitate use of Intel MKL sparse BLAS routines with matrices stored in AIJ/BAIJ format.</li>
      </ul>
      <h4>PC:</h4>
      <ul>
        <li>The is_local argument to PCASMSetLocalSubdomains() is now ignored UNLESS the PCASMType is set to restrict</li>
        <li>Added PCMGSetNumberSmooth()</li>
        <li>PCMGSetGalerkin() and -pc_mg_galerkin now take PC_MG_GALERKIN_BOTH,PC_MG_GALERKIN_PMAT,PC_MG_GALERKIN_MAT, PC_MG_GALERKIN_NONE as arguments instead of PetscBool</li>
        <li>Added PCBDDCSetDivergenceMat to help BDDC to compute the flux across the subdomain interfaces.</li>
        <li>Removed PCBDDCSetNullSpace. Local nullspace information should now be attached to the subdomain matrix via MatSetNullSpace.</li>
        <li>Added additional PetscBool parameter to PCBDDCCreateFETIDPOperators for the specification of the type of multipliers.</li>
        <li>Added additional string parameter to PCBDDCCreateFETIDPOperators for the specification of the prefix (can be NULL).</li>
        <li>FIELDSPLIT now extracts off-diag fieldsplit blocks from the preconditioner instead of the jacobian by default. Use -pc_fieldsplit_off_diag_use_amat to use the jacobian matrix.</li>
        <li>Added PCFieldSplitSetSchurScale to control the scaling factor of the Schur complement with the DIAG factorization. The corresponding command line option is -pc_fieldsplit_schur_scale.</li>
      </ul>
      <h4>KSP:</h4>
      <ul>
        <li>Added KSPFETIDP, a linear system solver based on the FETI-DP method.</li>
        <li>Added the KSPGuess class: available methods are KSPGUESSFISCHER and KSPGUESSPOD. The new KSPGUESSPOD computes an initial guess using the Proper Orthogonal Decomposition technique.</li>
        <li>KSPFischerGuessCreate has been removed: see the man page of KSPGUESSFISCHER for how to create a Fischer type initial guess.</li>
        <li> KSPCHEBYSHEV: replace KSPChebyshevEstEigSetUseRandom() with KSPChebyshevEstEigSetUseNoisy(), using a deterministic algorithm to generate noisy vectors.
      </ul>
      <h4>SNES:</h4>
      <h4>SNESLineSearch:</h4>
      <h4>TS:</h4>
      <ul>
        <li>Changed TSGL to TSGLLE.</li>
        <li>-ts_monitor binary now saves the timestep information as a REAL entry consisting of the REAL_FILE_CLASSID followed by the real value. PetscBinaryRead.m and PetscBinaryIO.py can read these in automatically.</li>
        <li>Added TSRK5BS scheme to TSRK.</li>
        <li>Added TSADAPTDSP adaptive controller based on digital signal processing techniques.</li>
        <li>Removed command line option <tt>-ts_theta_adapt</tt>, use <tt>-ts_adapt_type basic</tt> to turn on adaptivity in TSTHETA.</li>
        <li>Remove command line option <tt>-ts_alpha_adapt</tt> and routines TSAlphaUseAdapt()/TSAlpha2UseAdapt(), use <tt>-ts_adapt_type basic</tt> to turn on adaptivity in TSALPHA/TSALPHA2.</li>
        <li>Removed TSBDFUseAdapt(), using time step adaptivity in TSBDF is now the default, use <tt>-ts_adapt_type none</tt> to turn adaptivity off. </li>
        <li>Added TSAdaptSetAlwaysAccept() to set whether to always accept steps.</li>
        <li>Added TSAdapt{Set|Get}Safety() to set safety factors and renamed option <tt>-ts_adapt_basic_[reject_]safety</tt> to <tt>-ts_adapt_[reject_]safety</tt>.</li>
        <li>Renamed TSAdaptBasic{Set|Get}Clip() and option <tt>-ts_adapt_basic_clip</tt> to TSAdapt{Set|Get}Clip() and <tt>-ts_adapt_clip</tt>.</li>
        <li>Added TSAdaptGetStepLimits() to get minimum and maximum allowed time step.</li>
        <li>Calling TSAdaptSetType() will reset all option values (safety factors, clipping factors, etc) to default values.</li>
        <li>Added TS{Set|Get}MaxSteps() and TS{Set|Get}MaxTime(), deprecated TS{Set|Get}Duration().</li>
        <li>Added TSGetStepNumber(), deprecated TSGetTimeStepNumber() and TSGetTotalSteps().</li>
        <li>Deprecated TSSetInitialTimeStep(), use TSSetTime() and TSSetTimeStep().</li>
      </ul>
      <h4>DM/DA:</h4>
      <ul>
        <li>Changed prototypes for DMCompositeGather() and DMCompositeGatherArray()</li>
        <li>Replace calls to DMDACreateXd() with DMDACreateXd(), [DMSetFromOptions()] DMSetUp()</li>
        <li>DMDACreateXd() no longer can take negative values for dimensons, instead pass positive values and call DMSetFromOptions() immediately after</li>
        <li>Added DMSwarm which supports data management and data movement of arbitrary fields defined on a point set. Such functionality is useful for partcle based methods. High level support for particle-in-cell methods is provided when using either a DMDA or DMPLEX mesh.</li>
      </ul>
      <h4>DMPlex:</h4>
      <ul>
        <li>Added DMPlexRefineSimplexToTensor to refine simplicial into tensor product cell meshes.
        <li>Added PTScotch partitioner.
      </ul>
      <h4>PetscViewer:</h4>
      <h4>SYS:</h4>
      <ul>
        <li>-help now has the option -help intro that only prints the programs help string and then exits the program</li>
        <li>Petsc64bitInt -> PetscInt64, PetscIntMult64bit() -> PetscInt64Mult(), PetscBagRegister64bitInt() -> PetscBagRegisterInt64()</li>
      </ul>
      <h4>AO:</h4>
      <h4>Sieve:</h4>
      <h4>Fortran:</h4>
      <ul>
        <li>PETSC_NULL_INTEGER, PETSC_NULL_REAL etc are now declared as arrays of size one instead of as scalar values.</li>
        <li>New shorter calling sequence for PetscError() from Fortran</li>        
        <li>SETERRQ(), and CHKERRQ from Fortran now have the same behavior as in C and automatically return on errors, they do not abort.
            Correspondingly SERERRA() and CHKERRA() should be used in 'program main' - as return is not possible from it.
            These macros should be used from .F90 files because they require long lines</li>
        <li>Simplified Fortran usage. Now you only include petsc/finclude/petscXXX and use petscXXX</li>
        <ul>
          <li>For each Fortran function (and main) use the following
          <pre>
     subroutine mysubroutine(.....)
#include &lt;petsc/finclude/petscxxx.h&gt;
     use petscxxx
     implicit none
          </pre>
          For example if you are using SNES in your code you would have
          <pre>
#include &lt;petsc/finclude/petscsnes.h&gt;
     use petscsnes
     implicit none
          </pre></li>

          <li>Instead of PETSC_NULL_OBJECT you must pass PETSC_NULL_XXX (for example PETSC_NULL_VEC) using the specific object type XXX that the function call is expecting.</li>

          <li>Objects can be declared either as XXX  a  or  type(tXXX) a, for example Mat a or type(tMat) a.  (Note that previously for those who used types it was type(Mat) but that can no longer be used.</li>
        </ul>

        <br>Notes:
        <ul>
          <li>There are no longer any .h90 files that may or need to be included</li>

          <li>Like C the include files are now nested so you no longer need to include for example
            <pre>
#include &lt;petsc/finclude/petscsys.h&gt;
#include &lt;petsc/finclude/petscvec.h&gt;
#include &lt;petsc/finclude/petscmat.h&gt;
#include &lt;petsc/finclude/petscpc.h&gt;
#include &lt;petsc/finclude/petscksp.h&gt;
            </pre>
            you can just include
            <pre>
#include &lt;petsc/finclude/petscksp.h&gt;
            </pre></li>

          <li>there is now type checking of most function calls. This will help eliminate bugs due to incorrect calling sequences. Note that Fortran distinguishes between a argument that is a scalar (zero dimensional array), a one dimensional array and a two dimensional array (etc). So you may get compile warnings because you are passing in an array when PETSc expects a scalar or vis-versa. If you get these simply fix your declaration of the variable to match what is expected. In some routines like MatSetValues() and friends you can pass either scalars, one dimensional arrays or two dimensional arrays, if you get errors here please send mail to petsc-maint@mcs.anl.gov and include enough of your code so we can see the dimensions of all your variables so we can fix the problems.</li>

          <li>You can continue to use either fixed (.F extension) or free format (.F90 extension) for your source</li>

          <li>All the examples in PETSc have been updated so consult them for clarifications.</li>
        </ul>
      </ul>
    </div>

    
  </body>
</html>