cvode_dense.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * -----------------------------------------------------------------
  3. * $Revision: 4378 $
  4. * $Date: 2015-02-19 10:55:14 -0800 (Thu, 19 Feb 2015) $
  5. * -----------------------------------------------------------------
  6. * Programmer(s): Scott D. Cohen, Alan C. Hindmarsh and
  7. * Radu Serban @ LLNL
  8. * -----------------------------------------------------------------
  9. * LLNS Copyright Start
  10. * Copyright (c) 2014, Lawrence Livermore National Security
  11. * This work was performed under the auspices of the U.S. Department
  12. * of Energy by Lawrence Livermore National Laboratory in part under
  13. * Contract W-7405-Eng-48 and in part under Contract DE-AC52-07NA27344.
  14. * Produced at the Lawrence Livermore National Laboratory.
  15. * All rights reserved.
  16. * For details, see the LICENSE file.
  17. * LLNS Copyright End
  18. * -----------------------------------------------------------------
  19. * This is the header file for the CVODE dense linear solver, CVDENSE.
  20. * -----------------------------------------------------------------
  21. */
  22. #ifndef _CVDENSE_H
  23. #define _CVDENSE_H
  24. #include <cvode/cvode_direct.h>
  25. #include <sundials/sundials_dense.h>
  26. #ifdef __cplusplus /* wrapper to enable C++ usage */
  27. extern "C" {
  28. #endif
  29. /*
  30. * -----------------------------------------------------------------
  31. * Function: CVDense
  32. * -----------------------------------------------------------------
  33. * A call to the CVDense function links the main integrator with
  34. * the CVDENSE linear solver.
  35. *
  36. * cvode_mem is the pointer to the integrator memory returned by
  37. * CVodeCreate.
  38. *
  39. * N is the size of the ODE system.
  40. *
  41. * The return value of CVDense is one of:
  42. * CVDLS_SUCCESS if successful
  43. * CVDLS_MEM_NULL if the cvode memory was NULL
  44. * CVDLS_MEM_FAIL if there was a memory allocation failure
  45. * CVDLS_ILL_INPUT if a required vector operation is missing
  46. * -----------------------------------------------------------------
  47. */
  48. SUNDIALS_EXPORT int CVDense(void *cvode_mem, long int N);
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif