Hi 

Thanks for the prompt reply.

Yes I built deal.II from source but libtrilinos-sacado-dev was installed 
via the debian package and apt (log files attached). I have all the headers 
in my /usr/include/trilinos directory. Just skimming the summary file it 
appears that deal.II did not detect sacado. Not sure why not though. 

Thanks for the tip on the new tutorials. I will check them out once I get 
this working. 

Matt

On Wednesday, 7 July 2021 at 12:51:26 UTC-4 Jean-Paul Pelteret wrote:

> Hi Matthew,
>
> I don’t quite understand exactly how you installed deal.II and Trilinos. 
> Perhaps you can provide some more explicit details so that we can help you 
> out.
>
> * Is Trilinos installed using the apt package, and deal.II installed from 
> source? If you built deal.II from source, may you please attach the build 
> logs (summary.log and detailed.log) for us to look at.
>
> * Did you install the Trilinos development packages (e.g. trilinos-dev or 
> libtrilinos-sacado-dev), which should install the headers into a central 
> location?
>
> * When you built deal.II, and it detects Trilinos and Sacado, the 
> following two variable is defined in config.h (this is also output to the 
> console during configuration):
> $ cat include/deal.II/base/config.h | grep SACADO
>   #define DEAL_II_TRILINOS_WITH_SACADO
> Do you see it there? If not, then deal.II did not successfully detect 
> Sacado during configuration, and does not support it. If you try to 
> configure step-33, an error should be emitted that expresses this.
>
> When you #include <Sacado.hpp> then the compiler first looks for this 
> header in the default location for the system, which I think is  
> /usr/include. 
> If it doesn’t find it there then it looks in some other specific locations 
> that deal.II (through the configured packages) suggests that it goes 
> looking in.
>
> As a side note, there are two new tutorials (step-71 
> <https://www.dealii.org/current/doxygen/deal.II/step_71.html> and step-72 
> <https://www.dealii.org/current/doxygen/deal.II/step_72.html>) that cover 
> the topic of auto-differentiation as well. You might want to consider 
> looking at those before step-33. Step-33 uses Sacado at a low-level, and 
> these two new tutorials introduce some wrappers that we’ve implemented 
> inside the library that make using Sacado a bit more tractable.
>
> Best,
> Jean-Paul
>
>
> On 7. Jul 2021, at 17:41, Matthew Rich <mjri...@gmail.com> wrote:
>
> Hi all,
>
>  I am a bit confused on step-33 which uses the differentiation of sacado. 
> I installed the latest version. 9.3 which has trilinios in it, and 
> therefore sacado. Browsing that directory I see other header files for the 
> package but not sacado.hpp
>
> The tutorial has the line
> #include <Sacado.hpp>
>
> Was this file renamed or something? I am on Debian and I have installed 
> the trilinios through their package, which does have the header file. 
> However I cannot get the program to work properly.
>
> I am looking for guidance on this issue of getting the right headers in 
> the program so I can run this tutorial and others leveraging the sacado 
> package.
>
> Thanks in advance,
>
> Maty
>
>
>
>
> -- 
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/CAN3OR9oH-Za8weU3xHrMs5H86VeJffqtnrNxo_xh%3DddjMhc88g%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/dealii/CAN3OR9oH-Za8weU3xHrMs5H86VeJffqtnrNxo_xh%3DddjMhc88g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/e81216d4-e6bd-4a66-9196-1cd5d40d436an%40googlegroups.com.
###
#
#  deal.II configuration:
#        CMAKE_BUILD_TYPE:       DebugRelease
#        BUILD_SHARED_LIBS:      ON
#        CMAKE_INSTALL_PREFIX:   /usr/local/deal.II
#        CMAKE_SOURCE_DIR:       /home/mastermind/dealII/dealii-9.3.1
#                                (version 9.3.1)
#        CMAKE_BINARY_DIR:       /home/mastermind/dealII/dealii-9.3.1
#        CMAKE_CXX_COMPILER:     GNU 8.3.0 on platform Linux x86_64
#                                /usr/bin/c++
#        C++ language standard:  C++14
#
#  Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION = ON):
#      ( DEAL_II_WITH_64BIT_INDICES = OFF )
#      ( DEAL_II_WITH_ADOLC = OFF )
#      ( DEAL_II_WITH_ARBORX = OFF )
#      ( DEAL_II_WITH_ARPACK = OFF )
#      ( DEAL_II_WITH_ASSIMP = OFF )
#        DEAL_II_WITH_BOOST set up with external dependencies
#        DEAL_II_WITH_COMPLEX_VALUES = ON
#      ( DEAL_II_WITH_CUDA = OFF )
#      ( DEAL_II_WITH_GINKGO = OFF )
#        DEAL_II_WITH_GMSH set up with external dependencies
#      ( DEAL_II_WITH_GSL = OFF )
#      ( DEAL_II_WITH_HDF5 = OFF )
#      ( DEAL_II_WITH_KOKKOS = OFF )
#        DEAL_II_WITH_LAPACK set up with external dependencies
#      ( DEAL_II_WITH_METIS = OFF )
#      ( DEAL_II_WITH_MPI = OFF )
#        DEAL_II_WITH_MUPARSER set up with bundled packages
#      ( DEAL_II_WITH_OPENCASCADE = OFF )
#      ( DEAL_II_WITH_P4EST = OFF )
#      ( DEAL_II_WITH_PETSC = OFF )
#      ( DEAL_II_WITH_SCALAPACK = OFF )
#      ( DEAL_II_WITH_SLEPC = OFF )
#      ( DEAL_II_WITH_SUNDIALS = OFF )
#      ( DEAL_II_WITH_SYMENGINE = OFF )
#        DEAL_II_WITH_TBB set up with external dependencies
#      ( DEAL_II_WITH_TRILINOS = OFF )
#        DEAL_II_WITH_UMFPACK set up with bundled packages
#        DEAL_II_WITH_ZLIB set up with external dependencies
#
#  Component configuration:
#      ( DEAL_II_COMPONENT_DOCUMENTATION = OFF )
#        DEAL_II_COMPONENT_EXAMPLES
#      ( DEAL_II_COMPONENT_PACKAGE = OFF )
#      ( DEAL_II_COMPONENT_PYTHON_BINDINGS = OFF )
#
#  Detailed information (compiler flags, feature configuration) can be found in detailed.log
#
#  Run  $ make info  to print a help message with a list of top level targets
#
###
###
#
#  deal.II configuration:
#        CMAKE_BUILD_TYPE:       DebugRelease
#        BUILD_SHARED_LIBS:      ON
#        CMAKE_INSTALL_PREFIX:   /usr/local/deal.II
#        CMAKE_SOURCE_DIR:       /home/mastermind/dealII/dealii-9.3.1
#                                (version 9.3.1)
#        CMAKE_BINARY_DIR:       /home/mastermind/dealII/dealii-9.3.1
#        CMAKE_CXX_COMPILER:     GNU 8.3.0 on platform Linux x86_64
#                                /usr/bin/c++
#        C++ language standard:  C++14
#        CMAKE_C_COMPILER:       /usr/bin/cc
#        CMAKE_Fortran_COMPILER: /usr/bin/gfortran
#        CMAKE_GENERATOR:        Unix Makefiles
#
#  Base configuration (prior to feature configuration):
#        DEAL_II_CXX_FLAGS:            -pedantic -fPIC -Wall -Wextra -Wmissing-braces -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth -Wwrite-strings -Wno-placement-new -Wno-deprecated-declarations -Wno-literal-suffix -Wno-psabi -Wno-class-memaccess -fopenmp-simd
#        DEAL_II_CXX_FLAGS_RELEASE:    -O2 -funroll-loops -funroll-all-loops -fstrict-aliasing -Wno-unused-local-typedefs
#        DEAL_II_CXX_FLAGS_DEBUG:      -O0 -ggdb -Wa,--compress-debug-sections
#        DEAL_II_LINKER_FLAGS:         -Wl,--as-needed -rdynamic -fuse-ld=gold -lpthread
#        DEAL_II_LINKER_FLAGS_RELEASE: 
#        DEAL_II_LINKER_FLAGS_DEBUG:   -ggdb
#        DEAL_II_DEFINITIONS:          
#        DEAL_II_DEFINITIONS_RELEASE:  
#        DEAL_II_DEFINITIONS_DEBUG:    DEBUG
#        DEAL_II_USER_DEFINITIONS:     
#        DEAL_II_USER_DEFINITIONS_REL: 
#        DEAL_II_USER_DEFINITIONS_DEB: DEBUG
#        DEAL_II_INCLUDE_DIRS          
#        DEAL_II_USER_INCLUDE_DIRS:    
#        DEAL_II_BUNDLED_INCLUDE_DIRS: 
#        DEAL_II_LIBRARIES:            
#        DEAL_II_LIBRARIES_RELEASE:    
#        DEAL_II_LIBRARIES_DEBUG:      
#        DEAL_II_VECTORIZATION_WIDTH_IN_BITS: 128
#        DEAL_II_HAVE_CXX14
#
#  Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION = ON):
#      ( DEAL_II_WITH_64BIT_INDICES = OFF )
#      ( DEAL_II_WITH_ADOLC = OFF )
#      ( DEAL_II_WITH_ARBORX = OFF )
#      ( DEAL_II_WITH_ARPACK = OFF )
#      ( DEAL_II_WITH_ASSIMP = OFF )
#        DEAL_II_WITH_BOOST set up with external dependencies
#            BOOST_VERSION = 1.67.0
#            BOOST_CXX_FLAGS = -Wno-unused-local-typedefs
#            BOOST_DEFINITIONS = BOOST_NO_AUTO_PTR
#            BOOST_USER_DEFINITIONS = BOOST_NO_AUTO_PTR
#            BOOST_INCLUDE_DIRS = /usr/include
#            BOOST_USER_INCLUDE_DIRS = /usr/include
#            BOOST_LIBRARIES = /usr/lib/x86_64-linux-gnu/libboost_iostreams.so;/usr/lib/x86_64-linux-gnu/libboost_serialization.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboost_regex.so;/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so
#        DEAL_II_WITH_COMPLEX_VALUES = ON
#      ( DEAL_II_WITH_CUDA = OFF )
#      ( DEAL_II_WITH_GINKGO = OFF )
#        DEAL_II_WITH_GMSH set up with external dependencies
#            GMSH_EXE = /usr/bin/gmsh
#            GMSH_INCLUDE_DIRS = 
#            GMSH_USER_INCLUDE_DIRS = 
#            GMSH_LIBRARIES = 
#      ( DEAL_II_WITH_GSL = OFF )
#      ( DEAL_II_WITH_HDF5 = OFF )
#      ( DEAL_II_WITH_KOKKOS = OFF )
#        DEAL_II_WITH_LAPACK set up with external dependencies
#            LAPACK_WITH_64BIT_BLAS_INDICES = OFF
#            LAPACK_LINKER_FLAGS = 
#            LAPACK_INCLUDE_DIRS = 
#            LAPACK_USER_INCLUDE_DIRS = 
#            LAPACK_LIBRARIES = /usr/lib/x86_64-linux-gnu/liblapack.so;/usr/lib/x86_64-linux-gnu/libblas.so
#      ( DEAL_II_WITH_METIS = OFF )
#      ( DEAL_II_WITH_MPI = OFF )
#        DEAL_II_WITH_MUPARSER set up with bundled packages
#            MUPARSER_BUNDLED_INCLUDE_DIRS = /home/mastermind/dealII/dealii-9.3.1/bundled/muparser_v2_2_4//include
#      ( DEAL_II_WITH_OPENCASCADE = OFF )
#      ( DEAL_II_WITH_P4EST = OFF )
#      ( DEAL_II_WITH_PETSC = OFF )
#      ( DEAL_II_WITH_SCALAPACK = OFF )
#      ( DEAL_II_WITH_SLEPC = OFF )
#      ( DEAL_II_WITH_SUNDIALS = OFF )
#      ( DEAL_II_WITH_SYMENGINE = OFF )
#        DEAL_II_WITH_TBB set up with external dependencies
#            TBB_VERSION = 2018.0
#            TBB_INCLUDE_DIRS = /usr/include
#            TBB_USER_INCLUDE_DIRS = /usr/include
#            TBB_LIBRARIES = /usr/lib/x86_64-linux-gnu/libtbb.so
#      ( DEAL_II_WITH_TRILINOS = OFF )
#        DEAL_II_WITH_UMFPACK set up with bundled packages
#            UMFPACK_BUNDLED_INCLUDE_DIRS = /home/mastermind/dealII/dealii-9.3.1/bundled/umfpack/UMFPACK/Include;/home/mastermind/dealII/dealii-9.3.1/bundled/umfpack/AMD/Include
#        DEAL_II_WITH_ZLIB set up with external dependencies
#            ZLIB_VERSION = 1.2.11
#            ZLIB_INCLUDE_DIRS = /usr/include
#            ZLIB_LIBRARIES = /usr/lib/x86_64-linux-gnu/libz.so
#
#  Component configuration:
#      ( DEAL_II_COMPONENT_DOCUMENTATION = OFF )
#        DEAL_II_COMPONENT_EXAMPLES
#      ( DEAL_II_COMPONENT_PACKAGE = OFF )
#      ( DEAL_II_COMPONENT_PYTHON_BINDINGS = OFF )
#
###

Reply via email to