Hi Jeremy,

Yes it was that i was interested how to call the various solvers from terminal.

I changed the CMAKE_INSTALL_Prefix to /usr/local  and now it seems to be fine .


Thanks for your support.


 Kind regards,

Thomas



From: Jeremy Cohen <jeremy.cohen@imperial.ac.uk>
Sent: 19 February 2018 15:21:54
To: Thomas Andreou
Cc: nektar-users@imperial.ac.uk
Subject: Re: [Nektar-users] Nektar++ Installation question
 
Hi Thomas,

When you say you want to call Nektar++ from the terminal, can you provide a little more information about what you're trying to achieve?

Are you wanting to know how to run the various solvers from the terminal? How have you currently installed Nektar++?

If you've not set an install prefix (the CMAKE_INSTALL_PREFIX parameter in cmake), then the default install location will be a dist subdirectory of your build directory. If you run "make install" after your build succeeds, the solver executables and Nektar++ libraries will be installed to this location.

You could then set up your system path to point to the build/dist/bin directory of your Nektar++ directory. Alternatively you can set your CMAKE_INSTALL_PREFIX to /usr or /usr/local or similar and install the Nektar++ binaries into a system directory where they'll be on the default system path.

Once the binaries are installed and accessible within your path, you should then be able to call the various solver executables, e.g. IncNavierStokesSolver, CompressibleFlowSolver, etc. directly from the terminal, passing in your XML input session file containing your job configuration and geometry. You can find some examples of configuring a session file for the incompressible Navier-Stokes solver in the user guide: http://doc.nektar.info/userguide/latest/user-guidese42.html

Hope this helps but apologies if I've misunderstood your question.

Regards,
Jeremy

On 19 Feb 2018, at 14:42, Thomas Andreou <t.andreou.1@research.gla.ac.uk> wrote:

Thanks Jeremy, Chris,
I have followed your advice and ran ctest after and it seems to all work well.

I have one more question. How do i configure Nektar++ so that i can call it from terminal?
I couldn't find anything relating to this in the userguide.




From: nektar-users-bounces@imperial.ac.uk <nektar-users-bounces@imperial.ac.uk> on behalf of Chris Cantwell <c.cantwell@imperial.ac.uk>
Sent: 19 February 2018 14:16:33
To: nektar-users@imperial.ac.uk
Subject: Re: [Nektar-users] Nektar++ Installation question
 
Dear Thomas,

You look to be using an operating-system packaged version of the 
OpenCascade OCE library. Possibly you are missing one of the development 
packages. In particular, if you are on an Ubuntu/Debian system, the 
package which contains the missing header file is called 
liboce-ocaf-dev. Hopefully installing this package should fix the error.

If it does not, please tell us the packages you have installed relating 
to OCE, and their version number.

Kind regards,
Chris


On 19/02/18 12:27, Thomas Andreou wrote:
> Dear All,

> I need some help please with installing Nektar++ on Ubuntu 16.04 .

> I've been trying to install it using the ccmake method as i was 
> interested in using the NEKMESHGEN module.

> I have however been encountering this errror after "make install" :


> CMakeFiles/Makefile2:1023: recipe for target 
> 'library/NekMeshUtils/CMakeFiles/NekMeshUtils.dir/all' failed
> make[1]: *** [library/NekMeshUtils/CMakeFiles/NekMeshUtils.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 38%] Linking CXX executable LocProject1D
> [ 38%] Built target LocProject1D
> [ 38%] Linking CXX executable LocProject_Diff2D
> [ 38%] Built target LocProject_Diff2D
> [ 38%] Linking CXX shared library libCollections.so
> [ 39%] Linking CXX executable LocProject3D
> [ 39%] Linking CXX executable LocalRegionsUnitTests
> [ 39%] Built target Collections
> [ 39%] Built target LocProject3D
> [ 39%] Built target LocalRegionsUnitTests
> Makefile:162: recipe for target 'all' failed
> make: *** [all] Error 2




> I have also tried ''make VERBOSE=1'' and get this :





> When i tried compiling with NEKMESHGEN off it seemed to work.

> Does anyone know how i can get around this issue?


> Also is there a way to install the mesh generator without cmake? could i 
> do it via sudo apt-get install?


> Kind Regards,


> Thomas Andreou

t.andreou.1@research.gla.ac.uk

> PhD Student

> Aerospace Sciences Division

> University of Glasgow




> _______________________________________________
> Nektar-users mailing list
Nektar-users@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/nektar-users


-- 
Chris Cantwell
Imperial College London
South Kensington Campus
London SW7 2AZ
Email: c.cantwell@imperial.ac.uk
www.imperial.ac.uk/people/c.cantwell

_______________________________________________
Nektar-users mailing list
Nektar-users@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/nektar-users