← Back to team overview

dolfin team mailing list archive

Re: Beta-testing of new plot functionality

 

On Wed, May 30, 2012 at 3:17 PM, Marie E. Rognes <meg@xxxxxxxxx> wrote:
> On 05/30/2012 02:57 PM, Anders Logg wrote:
>>
>> Fredrik Valdmanis has made progress on his project to add new plot
>> functionality in C++ (Viper replacement).
>>
>> Basic functionality is now in place for plotting meshes, scalar
>> functions and vector functions.
>
>
> Nice!

Yes, very nice!

>> We would appreciate if everyone
>> interested (in particular core DOLFIN developers) would build the
>> dolfin-plot branch, test out the plotting and provide feedback and
>> feature requests.
>
>
> How do I make it pick up VTK?:
>
> CMake Warning at CMakeLists.txt:358 (find_package):
>  Could not find a configuration file for package VTK.
>
>  Set VTK_DIR to the directory containing a CMake configuration file for VTK.
>  The file will have one of the following names:
>
>    VTKConfig.cmake
>    vtk-config.cmake
>
> I don't seem to have any of those files.

You need to install the libvtk5-dev package.

I get an error when compiling the stokes-iterative demo.

Johannes

Building CXX object
demo/pde/stokes-iterative/cpp/CMakeFiles/demo_stokes-iterative.dir/main.cpp.o
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/demo/pde/stokes-iterative/cpp/main.cpp:
In function ‘int main()’:
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/demo/pde/stokes-iterative/cpp/main.cpp:145:3:
error: reference to ‘cout’ is ambiguous
In file included from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/common/Timer.h:24:0,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/common/dolfin_common.h:14,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin.h:6,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/demo/pde/stokes-iterative/cpp/main.cpp:28:
/usr/include/c++/4.7/iostream:62:18: error: candidates are:
std::ostream std::cout
In file included from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/log/dolfin_log.h:8:0,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/common/Hierarchical.h:26,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/common/dolfin_common.h:16,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin.h:6,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/demo/pde/stokes-iterative/cpp/main.cpp:28:
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/log/LogStream.h:101:20:
error:                 dolfin::LogStream dolfin::cout
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/demo/pde/stokes-iterative/cpp/main.cpp:145:54:
error: reference to ‘endl’ is ambiguous
In file included from /usr/include/c++/4.7/istream:41:0,
                 from /usr/include/c++/4.7/sstream:39,
                 from /usr/include/c++/4.7/complex:47,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/common/types.h:26,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/common/dolfin_common.h:8,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin.h:6,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/demo/pde/stokes-iterative/cpp/main.cpp:28:
/usr/include/c++/4.7/ostream:562:5: error: candidates are:
template<class _CharT, class _Traits> std::basic_ostream<_CharT,
_Traits>& std::endl(std::basic_ostream<_CharT, _Traits>&)
In file included from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/log/dolfin_log.h:8:0,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/common/Hierarchical.h:26,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/common/dolfin_common.h:16,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin.h:6,
                 from
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/demo/pde/stokes-iterative/cpp/main.cpp:28:
/home/johannr/dev/fenics/src/dolfin/dolfin-plot/local/include/dolfin/log/LogStream.h:104:20:
error:                 dolfin::LogStream dolfin::endl
make[2]: *** [demo/pde/stokes-iterative/cpp/CMakeFiles/demo_stokes-iterative.dir/main.cpp.o]
Error 1
make[1]: *** [demo/pde/stokes-iterative/cpp/CMakeFiles/demo_stokes-iterative.dir/all]
Error 2
make: *** [all] Error 2


Follow ups

References