Re: [Yade-users] [Question #599707]: yade launching problem in 16.04
Question #599707 on Yade changed: https://answers.launchpad.net/yade/+question/599707 Mike posted a new comment: oh, i realized my mistake: I should type ./yade-2017.01a thanks -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Status: Open => Solved Mike confirmed that the question is solved: oh, i realized my mistake: I should type ./yade-2017.01a thanks -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Huihuang Xia posted a new comment: Hi Mike, Please open this file folder, myYade/install/bin, in 'bin', can you see a file named 'yade-2017.01a'? If yes, please move to the next step: 2. open a new teminal, and input ' gedit ~/.bashrc' ( there is a blank between t and ~). 3. Copy this line 'alias yade='python SHOME/myYade/install/bin/yade-2017.01a' and place it at the bottom of bashrc, save and exit it. Huihuang Xia -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Mike posted a new comment: Thank you, Xia :) -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Mike posted a new comment: the problem has been solved -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Jan Stránský posted a new comment: Hello, > alias yade='python SHOME/myYade/install/bin/yade-2017.01a this solution works, but e.g. if you install native Ubuntu Yade (sudo apt-get install yade), its name is 'yade' by default, but the name points to yade-2017.01a... I would prefer exporting PATH to contain yade-2017.01a executable (again in ~/.bashrc file): export PATH=$HOME/myYade/install/bin:$PATH cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Mike posted a new comment: Hi Jan, I did not install native Ubuntu Yade. Do I need to change anything? I check my computer and it works well with YADE version compiling from source code. now I move into the debug version because i need to implement my new constitutive model for concrete. thank in advance! Mike -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Jan Stránský posted a new comment: by "native" I mean the version installed by 'sudo apt-get isntall yade' you don't need to do anything more the native version provides command 'yade' , which (on Ubuntu 16.04) outputs: Welcome to Yade 1.20.0 ... after your installation from source (and export PATH in bashrc or alias as below), you shuold have 'yade-2017.01a' command, which outputs: Welcome to Yade 2017.01a ... These commands should work as they are (just typing yade + Enter or yade-2017.01a + Enter, without need to 'cd something' or './yade...' tricks) Concerning the solution by Huihuang Xia, actually it is equally good as I think about it once again, just instead of 'alias yade=...' you write 'alias yade-2017.01a=...' to distinguish different versions cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Mike posted a new comment: Thank you Jan, now I have a better understanding about the problem. btw, Is that convenient to ask more questions about debuging YADE here or should I create a new topic? Sorry to ask too many questions at that time since I need to move on the next milestone in my PhD (from using existing constitutive model in YADE into implementing a new one). regards, Mike -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Jan Stránský posted a new comment: Hi Mike, have a look at [1]. If the question is closed and your new question is not related to the original topic, please open a new question. cheers Jan [1] https://yade-dem.org/wiki/Howtoask -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #624246]: Call yade-2017.01a after compilation
Question #624246 on Yade changed: https://answers.launchpad.net/yade/+question/624246 Mike posted a new comment: Thank you, Jan I read [1] too :). I should close this topic then move into a new one. Once again, thank you for your very kind help. Regards, Mike -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
[Yade-users] [Question #625432]: Starting debug session from inside kdevelop
New question #625432 on Yade: https://answers.launchpad.net/yade/+question/625432 Hello YADE users, Currently, I'm working with modifying and implementing a new constitutive model into YADE. What I have done so far is that: 1. Compile and install YADE from source code (Yade-2017.01a) with debug ON; 2. Install Kdevelop 4.7.3 3. Assume that I want to modify the concrete particle model existing in YADE (concretePM.cpp and concretePM.hpp) then I re-compile it. How can I debug my C++ code? I followed the instruction in [1] by: 1) preparing an python script to test the concrete constitutive model by using two spheres. 2) In EXECUTABLE section i chose the path to installed YADE; 3) in ARGUMENTS I chose the path to python script; And it runs but just for debugging the python script, but what I want is to debug my modified .cpp and .hpp file. Could any one could help me to solve the problem and if possible pls explain it to me in more detail 'cause I'm just a beginner in coding. Thanks in advance Regards, Mike [1] https://yade-dem.org/wiki/Debugging_using_Kdevelop -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #625432]: Starting debug session from inside kdevelop
Question #625432 on Yade changed: https://answers.launchpad.net/yade/+question/625432 Status: Open => Answered Robert Caulk proposed the following answer: Hello, > 2) In EXECUTABLE section i chose the path to installed YADE; Hmm your executable should by python, not yade. Maybe these directions will help: Run->Configure launches->Add New->Compiled Binary: In executable field: /path/to/python2.7 In Arguments: /path/to/yade /path/to/simulation.py In working directory: directory containing simulation.py Now click on "Debug" under the "New Compiled Binary Launcher" In debugger executable: /path/to/gdb Best of luck, Robert -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp