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 <mjric...@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/ 
> <http://www.dealii.org/>
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en 
> <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 
> <mailto:dealii+unsubscr...@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/C1F05D6B-DC3D-427B-B350-F0767A98B6B4%40gmail.com.

Reply via email to