petsc4py: Add support for event handling
TS: Replace 0 -> NULL for pointers
TS: fix for overshooting time stepping
Add PetscArraycmp(), PetscArraycpy(), PetscArrayzero(), PetscArraymove(), update code to use new formsReplace a couple multi-mallocs with a single mallocReplace backwards loops in MatSetValues_*()
Add PetscArraycmp(), PetscArraycpy(), PetscArrayzero(), PetscArraymove(), update code to use new formsReplace a couple multi-mallocs with a single mallocReplace backwards loops in MatSetValues_*() with PetscArraymove()Commit-type: style-fix, feature
show more ...
Man pages: remove .keywords: fieldsThis field is recognized by doctext from Sowing (http://wgropp.cs.illinois.edu/projects/software/sowing/doctext/node20.htm#Node20),but it doesn't seem to be unif
Man pages: remove .keywords: fieldsThis field is recognized by doctext from Sowing (http://wgropp.cs.illinois.edu/projects/software/sowing/doctext/node20.htm#Node20),but it doesn't seem to be uniformly used or maintained.Thus, remove all .keywords: fields, and a following blank line, if present.This is accomplished with GNU sed (gsed on OS X), with the following commands.*Warning* that this type of command can corrupt a .git directory,so be cautious in reusing or modifying these commands. They first lookfor and delete matching lines with a following line consisting of only whitespace,and then delete any remaining matching lines. find src/ -type f -exec gsed -i '/keywords:/ {N; /\n\s*$/d}' {} + find src/ -type f -exec gsed -i '/keywords:/d' {} + find include/ -type f -exec gsed -i '/keywords:/ {N; /\n\s*$/d}' {} + find include/ -type f -exec gsed -i '/keywords:/d' {} +Hints on the sed command obtained from: https://unix.stackexchange.com/questions/100754/how-to-delete-a-specific-line-and-the-following-blank-line-using-gnu-sed
Typos and tiny doc fixes for TSEvent manualpagesCommit-type: documentation
Merge remote-tracking branch 'origin/jczhang/vecscat-in-sf' [PR #1396]
Use new vector read-lock function namesThe new one are VecLockReadPush, VecLockReadPop, VecSetErrorIfLocked
TSEvent: Set custom step after event interval location.Can be set via option -ts_event_post_eventinterval_step or by callingTSSetPostEventIntervalStep()
TSEvent: add missing ierr= CHKERRQ(ierr);
TSEvent: fix minor bugWhen the dt is small, it means we have hit the event, and we can continue with the prescribed time step
TSEvent: Honor TS prefix for `-ts_event_xxx` options.
TSEvent: Lock solution vector before calling the user event handler
TSEvent: Use single MPIU_Allreduce() in TSPostEvent()
TS: Add TSRestartStep() to flag restart the next step
TS: Add TSGetStepNumber() and TSSetStepNumber()* Remove TSGetTotalSteps()* Remove TSGetTimeStepNumber()
Remove the use and definition of __FUNCT__ throughout the codeSince all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETScTime: 1.5 hoursThanks-t
Remove the use and definition of __FUNCT__ throughout the codeSince all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETScTime: 1.5 hoursThanks-to: Andreas Mang <andreas@ices.utexas.edu>
Fix for case when some processors do not have any events.
Code fixes for TS step restarting (used in ARKIMEX)i) TSClone() in ARK step-restart was not copying over the event andtrajectory data structures.ii) When TSDestroy() is called at the end of ARK s
Code fixes for TS step restarting (used in ARKIMEX)i) TSClone() in ARK step-restart was not copying over the event andtrajectory data structures.ii) When TSDestroy() is called at the end of ARK step-restart, the eventand trajectory structs were getting destroyed.iii) ARK step-restart calls TSSolve() that resets ts->steps andts->total_steps. This caused the filenames created by TSTrajectory to beoverwritten and thus the saved solutions in the file were not matchingwith the correct step numbers.
name space Event* and Class* utility functions with PetscReported-by: nightly tests
TSEvent: Add a flag to the TS structure to handle step restart
TSEvent: After restart, use min(dt_orig,dt_prev)
TS: Refactor TSStep() and TSRollBack()* TSStep() handles the step counter increment, and not TSStep_XXX().* TSRollBack() handles the step counter decrement.* Removed ``time_step_prev`` from the T
TS: Refactor TSStep() and TSRollBack()* TSStep() handles the step counter increment, and not TSStep_XXX().* TSRollBack() handles the step counter decrement.* Removed ``time_step_prev`` from the TS structure. New code should use ts->ptime - ts->ptime_prev to determine the previous time step size.* Removed unused ``time_step_orig`` from the TS structure.* Removed unused ``time_step_since_decrease`` from the TS structure.* Minor update bouncing ball test examples.* Regenerate some test examples output.
Fix minor whitespace issues
fix typo/compile error
123456