Skip to content

Commit

Permalink
Merge pull request #192 in SUNDIALS/sunrepo from sync-develop-with-ma…
Browse files Browse the repository at this point in the history
…ster to develop

Squashed commit of the following:

commit 874479f300ba22884d0d4dfd32df65353c0b3f40
Merge: 9172e4f 301463f
Author: David J. Gardner <gardner48@llnl.gov>
Date:   Tue Mar 26 11:47:41 2019 -0700

    Merge branch 'master' into sync-develop-with-master

commit 301463f
Author: Gardner, David James <gardner48@llnl.gov>
Date:   Mon Mar 11 14:49:05 2019 -0700

    Merge pull request #191 in SUNDIALS/sunrepo from bugfix/find-raja to master

    Squashed commit of the following:

    commit b78cb05c7a2d4b36e7814f44b6a2e98d62a9ba85
    Author: Balos, Cody Joe <balos1@llnl.gov>
    Date:   Wed Mar 6 14:00:01 2019 -0800

        use RAJA_DIR as a suggested path in find_package call

commit fce846f
Author: Gardner, David James <gardner48@llnl.gov>
Date:   Thu Feb 28 09:35:21 2019 -0800

    Merge pull request #188 in SUNDIALS/sunrepo from bugfix/github-PR-13 to master

    Squashed commit of the following:

    commit 7384b357af3b4357ddf9cb41506b995a5a7c59a4
    Author: Timothy Bourke <tim@tbrk.org>
    Date:   Fri Feb 15 09:19:57 2019 +0100

        NLS Solve: check for required callbacks

        Signed-off-by: Timothy Bourke <tim@tbrk.org>
        Signed-off-by: Balos, Cody Joe <balos1@llnl.gov>

commit 8810837
Merge: 74643f6 8b5206f
Author: Gardner, David James <gardner48@llnl.gov>
Date:   Wed Feb 13 14:04:59 2019 -0800

    Merge pull request #185 in SUNDIALS/sunrepo from develop to master

    * commit '8b5206f2ec03c924d5126a3b4e8440238a800704':
      Merge pull request #184 in SUNDIALS/sunrepo from release-4.1.0 to develop
      Merge pull request #183 in SUNDIALS/sunrepo from bugfix/github-PR-12 to develop
      Merge pull request #181 in SUNDIALS/sunrepo from feature/apply-github-pr-as-a-patch to develop
      Merge pull request #182 in SUNDIALS/sunrepo from bugfix/cmake-trilinos-directory to develop
      Merge pull request #180 in SUNDIALS/sunrepo from bugfix/ug-typos to develop
      Merge pull request #179 in SUNDIALS/sunrepo from bugfix/arkstep-fullrhs-error-message to develop
      Merge pull request #171 in SUNDIALS/sunrepo from feature/make-test-no-python to develop
      Merge pull request #174 in SUNDIALS/sunrepo from bugfix/print-butcher-table to develop
      Merge pull request #169 in SUNDIALS/sunrepo from feature/SUNDIALS-185-src-directory-restructure to develop
      Merge pull request #172 in SUNDIALS/sunrepo from feature/dont-install-impl-files to develop
      Merge pull request #168 in SUNDIALS/sunrepo from bugfix/double-free-nls to develop
      Merge pull request #173 in SUNDIALS/sunrepo from bugfix/fix-example-memory-leaks to develop
      Merge pull request #139 in SUNDIALS/sunrepo from Feature/Trilinos to develop
  • Loading branch information
gardner48 committed Mar 26, 2019
1 parent 9172e4f commit c4b2a20
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ endif()

if(RAJA_ENABLE)
# Look for CMake configuration file in RAJA installation
find_package(RAJA)
find_package(RAJA CONFIG PATHS ${RAJA_DIR} ${RAJA_DIR}/share/raja/cmake)
if (RAJA_FOUND)
include_directories(${RAJA_INCLUDE_DIR})
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} ${RAJA_NVCC_FLAGS})
Expand Down
4 changes: 4 additions & 0 deletions src/sunnonlinsol/fixedpoint/sunnonlinsol_fixedpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ int SUNNonlinSolSolve_FixedPoint(SUNNonlinearSolver NLS, N_Vector y0,
if ( (NLS == NULL) || (y0 == NULL) || (y == NULL) || (w == NULL) || (mem == NULL) )
return(SUN_NLS_MEM_NULL);

/* check that all required function pointers have been set */
if ( (FP_CONTENT(NLS)->Sys == NULL) || (FP_CONTENT(NLS)->CTest == NULL) )
return(SUN_NLS_MEM_NULL);

/* set local shortcut variables */
yprev = FP_CONTENT(NLS)->yprev;
gy = FP_CONTENT(NLS)->gy;
Expand Down
8 changes: 8 additions & 0 deletions src/sunnonlinsol/newton/sunnonlinsol_newton.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ int SUNNonlinSolSolve_Newton(SUNNonlinearSolver NLS,
(mem == NULL) )
return(SUN_NLS_MEM_NULL);

/* check that all required function pointers have been set */
if ( (NEWTON_CONTENT(NLS)->Sys == NULL) ||
(NEWTON_CONTENT(NLS)->LSolve == NULL) ||
(callLSetup && (NEWTON_CONTENT(NLS)->LSetup == NULL)) ||
(NEWTON_CONTENT(NLS)->CTest == NULL) ) {
return(SUN_NLS_MEM_NULL);
}

/* set local shortcut variables */
delta = NEWTON_CONTENT(NLS)->delta;

Expand Down

0 comments on commit c4b2a20

Please sign in to comment.