| ea40d77f | 30-Oct-2018 |
Satish Balay <balay@mcs.anl.gov> |
fix compile warnings on ubuntu-18.04 gcc-7.3.0
===================================== arch-jenkins-linux-gcc-quad-64idx-dbg: ===================================== /home/petsc/petsc.x/src/tao/bound/ex
fix compile warnings on ubuntu-18.04 gcc-7.3.0
===================================== arch-jenkins-linux-gcc-quad-64idx-dbg: ===================================== /home/petsc/petsc.x/src/tao/bound/examples/tutorials/plate2f.F90:570:17:
rhx = real(mx + 1.0) 1 Warning: Possible change of value in conversion from INTEGER(8) to REAL(4) at (1) [-Wconversion] /home/petsc/petsc.x/src/tao/bound/examples/tutorials/plate2f.F90:571:17:
rhy = real(my + 1.0) 1 Warning: Possible change of value in conversion from INTEGER(8) to REAL(4) at (1) [-Wconversion]
===================================== arch-jenkins-linux-gcc-complex-opt: ===================================== /home/petsc/petsc/src/ts/examples/tutorials/ex11.c: In function ‘PhysicsRiemann_SW’: /home/petsc/petsc/src/ts/examples/tutorials/ex11.c:418:9: warning: ‘uLreal.h’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (uL->h < 0 || uR->h < 0) {for (i=0; i<1+dim; i++) flux[i] = zero/zero; return;} /* SETERRQ(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Reconstructed thickness is negative"); */ ~~^~~ /home/petsc/petsc/src/ts/examples/tutorials/ex11.c:418:22: warning: ‘uRreal.h’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (uL->h < 0 || uR->h < 0) {for (i=0; i<1+dim; i++) flux[i] = zero/zero; return;} /* SETERRQ(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Reconstructed thickness is negative"); */ ~~^~~
show more ...
|
| 8da045c1 | 19-Oct-2018 |
Karl Rupp <me@karlrupp.net> |
Merge branch 'denera/tao-residual-setter-fix' [PR #1182]
* denera/tao-residual-setter-fix: Tao Residual and Residual-Jacobian setter function bug fix Order of INCREF and destroy operations fixed, an
Merge branch 'denera/tao-residual-setter-fix' [PR #1182]
* denera/tao-residual-setter-fix: Tao Residual and Residual-Jacobian setter function bug fix Order of INCREF and destroy operations fixed, and other Tao setter functions reviewed for correctness. Function name changed from TaoSetResidualJacobianRoutine() to TaoSetJacobianResidualRoutine() to match the pattern of other Jacobian setters.
For more detail, see: https://bitbucket.org/petsc/petsc/commits/737f463ab30e8a11bf8f036b04a75b5d358c645b#comment-6707469
show more ...
|