Re: [deal.II] Re: problems with installation ; Unknown CMake command "DEAL_II_ADD_LIBRARY"

2017-06-15 Thread Bulent Tokay
Hi Bruno,

I checked if test.h is present. Nothing is there. You are right. There is 
no problem. Tutorials work..

Thanks a lot! :)

Best regards,



15 Haziran 2017 Perşembe 17:46:33 UTC+3 tarihinde Bruno Turcksin yazdı:
>
> 2017-06-15 10:39 GMT-04:00 Bulent Tokay : 
>
> > , and then got the same error. Detailed.log is appended. 
> > 
> > Am I doing something wrong insistently? 
> Does the file /home/daieren/dealii-master/tests/test.h exist? To me it 
> looks like a problem with the test itself not your install. Can you 
> run the tutorials? 
>
> Best, 
>
> Bruno 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Re: CMake extra libraries?

2017-06-15 Thread Bruno Turcksin
2017-06-15 17:19 GMT-04:00 Victor Eijkhout :
> I'm trying to install deal. The cmake tries to test the link to trilinos,
> which bombs on a lot of unresolved reference to python stuff.
That's what I thought, don't listen to Denis :p The problem is that
Trilinos botched their TrilinosConfig.cmake. What we do is load the
TrilinosConfig.cmake to get their flags but if they don't put them in,
there is little we can do. What I would do is to add the flags needed
myself. Edit the file
/trilinos_install_directory/lib/cmake/Trilinos/TrilinosConfig.cmake
and add the flag that you need in SET(Trilinos_CXX_COMPILER_FLAGS) or
SET(Trilinos_EXTRA_LD_FLAGS). You should probably back up the file
first...

Best,

Bruno

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[deal.II] Re: CMake extra libraries?

2017-06-15 Thread Victor Eijkhout


On Thursday, June 15, 2017 at 3:40:35 PM UTC-5, Bruno Turcksin wrote:
>
>  
>>
> I am not sure that you and Denis are talking about the same problem. Do 
> you get this problem when you compile deal.II or when you compile your own 
> project on top of deal.II? 
>
>
>
Ha. Good point.

I'm trying to install deal. The cmake tries to test the link to trilinos, 
which bombs on a lot of unresolved reference to python stuff.

Victor. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[deal.II] Re: CMake extra libraries?

2017-06-15 Thread Bruno Turcksin
Victor,

On Thursday, June 8, 2017 at 10:42:47 AM UTC-4, Victor Eijkhout wrote:
>
> Is there a cmake flag for specifying some extra libraries? Trilinos seems 
> to have been built with a python interface, but deal is somehow not linking 
> the libpython, so the cmake fails. 
>
I am not sure that you and Denis are talking about the same problem. Do you 
get this problem when you compile deal.II or when you compile your own 
project on top of deal.II? 

Best,

Bruno

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Re: CMake extra libraries?

2017-06-15 Thread Victor Eijkhout


On Thursday, June 15, 2017 at 12:56:14 PM UTC-5, Denis Davydov wrote:
>
>
> Nope. You add things to **your** CMakeList.txt
>


You mean that I should edit **your** CMakeLists.txt, right? Not make an 
extra one of my own?

(Speaking of your: it has a line

#See doc/readme.html and doc/development/cmake.html for further#

That second link does not exist.
 

> You need to install the current development version of deal.II (from 
> GitHub master branch).
>

Got that.
 

> Then in CMake of **your** project after deal.II is found you do
>
> INCLUDE(${DEAL_II_FEATURE_CONFIG})
>

You mean "add this line to your CMakeList.txt"?
 

>
> to have DEAL_II_TRILINOS_DIR available, which will point to the Trilinos 
> used to build deal.II.
>
> Then you use https://cmake.org/cmake/help/v3.0/command/find_package.html 
> 
>  to 
> re-find the Trilinos with extra libraries you need for your project.
> Something like
>
> find_package(Trilinos COMPONENTS  HINTS 
> ${DEAL_II_TRILINOS_DIR})
>
>
 so I put 

find_package(Trilinos COMPONENTS /usr/lib/libpython.so HINTS 
${DEAL_II_TRILINOS_DIR})

in the CMakeLists.txt file. That leads to:

"--   TRILINOS_INCLUDE_DIRS: *** Required variable "Trilinos_INCLUDE_DIRS" 
empty ***"

so it seems to break something in what I've specified for Trilinos.

Victor.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Re: get_function_value error with hp class

2017-06-15 Thread Weixiong Zheng


在 2017年6月14日星期三 UTC-7下午5:44:37,Wolfgang Bangerth写道:
>
> On 06/13/2017 06:16 PM, Weixiong Zheng wrote: 
> > | 
> > 
> > | 
> > 
> > As the problem is a scalar problem, fv.shape_value and shape_grad work 
> as they 
> > are supposed to, but not the get_function_values. 
>
> It is a coincidence that the former two work -- they return the one 
> non-zero 
> component of a vector valued element. 
>
>
Dr Bangerth,

So you suggest I don't create an FESystem or I do?

Physically, the problem is scalar per direction (radiation transport). So 
you are suggesting I don't need to use FE_Nothing in the FESystem?

Or you are actually suggesting me treating the whole thing as a two-comp 
system with one of the two finite elements being FE_Nothing?

By the way, thanks for the reply.

Best,
Weixiong

> But the bug is that you create an FESystem: you say that the problem you 
> have 
> has two vector components if you create such an FESystem object. But you 
> also 
> say that the problem is scalar. This is a contradition. 
>
> Best 
>   W. 
>
> -- 
>  
> Wolfgang Bangerth  email: bang...@colostate.edu 
>  
> www: http://www.math.colostate.edu/~bangerth/ 
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Re: CMake extra libraries?

2017-06-15 Thread Denis Davydov

> On 15 Jun 2017, at 19:38, Victor Eijkhout  wrote:
> 
>  You seem to be saying that I need to add something to a file that is 
> generated by cmake.

Nope. You add things to **your** CMakeList.txt

> 
> And even then, it seems to be about a file deal.IIFeatureConfig.cmake which I 
> can't find anywhere.

You need to install the current development version of deal.II (from GitHub 
master branch).
Then in CMake of **your** project after deal.II is found you do

INCLUDE(${DEAL_II_FEATURE_CONFIG})

to have DEAL_II_TRILINOS_DIR available, which will point to the Trilinos used 
to build deal.II.

Then you use https://cmake.org/cmake/help/v3.0/command/find_package.html 
 to re-find the 
Trilinos with extra libraries you need for your project.
Something like

find_package(Trilinos COMPONENTS  HINTS 
${DEAL_II_TRILINOS_DIR})

alternatively you can do

  FIND_LIBRARY(Trilinos_extra
NAMES 
HINTS ${DEAL_II_TRILINOS_DIR}/lib
NO_DEFAULT_PATH
  )
  TARGET_LINK_LIBRARIES(${YOUR_TARGET_NAME}
  "${Trilinos_extra}"
)


> Victor
> 
> PS so there is no simple flag for "add these libraries”?

I don’t know a simpler way with CMake.


Regards,
Denis.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[deal.II] Re: CMake extra libraries?

2017-06-15 Thread Victor Eijkhout
That reply is way too cryptic for me. You seem to be saying that I need to 
add something to a file that is generated by cmake. But my cmake crashes to 
begin with.

And even then, it seems to be about a file deal.IIFeatureConfig.cmake which 
I can't find anywhere.

Victor

PS so there is no simple flag for "add these libraries"?

On Thursday, June 8, 2017 at 5:10:40 PM UTC-5, Denis Davydov wrote:
>
> U need to build with current master branch, look at commit message here 
> https://github.com/dealii/dealii/pull/4437 essentially u would get the 
> location of Trilinos used by deal.ii and link in extra libs
>
> Regards,
> Denis
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Re: problems with installation ; Unknown CMake command "DEAL_II_ADD_LIBRARY"

2017-06-15 Thread Bruno Turcksin
2017-06-15 10:39 GMT-04:00 Bulent Tokay :
> , and then got the same error. Detailed.log is appended.
>
> Am I doing something wrong insistently?
Does the file /home/daieren/dealii-master/tests/test.h exist? To me it
looks like a problem with the test itself not your install. Can you
run the tutorials?

Best,

Bruno

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] Re: problems with installation ; Unknown CMake command "DEAL_II_ADD_LIBRARY"

2017-06-15 Thread Bulent Tokay
Hi Bruno,

I followed procedure as you said;

mkdir build-directory
later, within the build-directory; cmake command > make > make install > 
make test

, and then got the same error. Detailed.log is appended.

Am I doing something wrong insistently?

Cheers,



15 Haziran 2017 Perşembe 15:14:49 UTC+3 tarihinde Bruno Turcksin yazdı:
>
> 2017-06-15 7:32 GMT-04:00 Bulent Tokay : 
>
> > Then, I tried the same way in deal.ii-8.5.0, and no problem happened 
> during 
> > building and installation. However, after make test command, I received 
> > output of failure. Detailed.log and related feedback in terminal are 
> > attached. 
> I think it is the same problem though. You should create a directory 
> build. From this directory, you type the cmake command then make. When 
> it's done you type 'make install'. This will install the library in 
> the path you gave (basically it moves the files that you need to the 
> install directory). Then, you can remove the build directory. 
>
> Best, 
>
> Bruno 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.
###
#
#  deal.II configuration:
#CMAKE_BUILD_TYPE:   DebugRelease
#BUILD_SHARED_LIBS:  ON
#CMAKE_INSTALL_PREFIX:   /home/daieren/dealii
#CMAKE_SOURCE_DIR:   /home/daieren/dealii-master
#(version 9.0.0-pre)
#CMAKE_BINARY_DIR:   /home/daieren/dealii
#CMAKE_CXX_COMPILER: GNU 5.4.0 on platform Linux x86_64
#/usr/bin/c++
#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 
-Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Wswitch 
-Woverloaded-virtual -Wno-deprecated-declarations -Wno-literal-suffix 
-fopenmp-simd -std=c++14 -std=c++14
#DEAL_II_CXX_FLAGS_RELEASE:-O2 -funroll-loops -funroll-all-loops 
-fstrict-aliasing -Wno-unused-local-typedefs
#DEAL_II_CXX_FLAGS_DEBUG:  -Og -ggdb -Wa,--compress-debug-sections
#DEAL_II_LINKER_FLAGS: -Wl,--as-needed -rdynamic -fuse-ld=gold
#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:m
#DEAL_II_LIBRARIES_RELEASE:
#DEAL_II_LIBRARIES_DEBUG:  
#
#  Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION 
= ON):
#  ( DEAL_II_WITH_64BIT_INDICES = OFF )
#  ( DEAL_II_WITH_ARPACK = OFF )
#DEAL_II_WITH_BOOST set up with bundled packages
#BOOST_CXX_FLAGS = -Wno-unused-local-typedefs
#BOOST_BUNDLED_INCLUDE_DIRS = 
/home/daieren/dealii-master/bundled/boost-1.62.0/include
#BOOST_LIBRARIES = rt
#  ( DEAL_II_WITH_BZIP2 = OFF )
#  ( DEAL_II_WITH_CUDA = OFF )
#DEAL_II_WITH_CXX14 = ON
#  ( DEAL_II_WITH_CXX17 = OFF )
#  ( DEAL_II_WITH_GSL = OFF )
#  ( DEAL_II_WITH_HDF5 = OFF )
#DEAL_II_WITH_LAPACK set up with external dependencies
#LAPACK_LINKER_FLAGS = 
#LAPACK_LIBRARIES = 
/usr/lib/liblapack.so;/usr/lib/libblas.so;gfortran;quadmath;m;c
#  ( DEAL_II_WITH_METIS = OFF )
#  ( DEAL_II_WITH_MPI = OFF )
#DEAL_II_WITH_MUPARSER set up with bundled packages
#MUPARSER_BUNDLED_INCLUDE_DIRS = 
/home/daieren/dealii-master/bundled/muparser_v2_2_4//include
#  ( DEAL_II_WITH_NETCDF = OFF )
#  ( DEAL_II_WITH_OPENCASCADE = OFF )
#  ( DEAL_II_WITH_P4EST = OFF )
#  ( DEAL_II_WITH_PETSC = OFF )
#  ( DEAL_II_WITH_SLEPC = OFF )
#DEAL_II_WITH_THREADS set up with external dependencies
#TBB_VERSION = 4.4
#THREADS_LINKER_FLAGS = -pthread
#THREADS_INCLUDE_DIRS = /usr/include
#THREADS_USER_INCLUDE_DIRS = /usr/include
#THREADS_LIBRARIES = /usr/lib/x86_64-linux-gnu/libtbb.so
#  ( DEAL_II_WITH_TRILINOS = OFF )
#DEAL_II_WITH_UMFPACK set up with external dependencies
#UMFPACK_VERSION = 5.7.1
#UMFPACK_LINKER_FLAGS = 
#UMFPACK_INCLUDE_DIRS = 

Re: [deal.II] Re: problems with installation ; Unknown CMake command "DEAL_II_ADD_LIBRARY"

2017-06-15 Thread Bruno Turcksin
2017-06-15 7:32 GMT-04:00 Bulent Tokay :
> Then, I tried the same way in deal.ii-8.5.0, and no problem happened during
> building and installation. However, after make test command, I received
> output of failure. Detailed.log and related feedback in terminal are
> attached.
I think it is the same problem though. You should create a directory
build. From this directory, you type the cmake command then make. When
it's done you type 'make install'. This will install the library in
the path you gave (basically it moves the files that you need to the
install directory). Then, you can remove the build directory.

Best,

Bruno

-- 
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.
For more options, visit https://groups.google.com/d/optout.