Since the recent changes the result properties are added in python. See for example git commit 9091c475d5a894cc42e4867b2b35f8c29bb087f2Jee-Bee wrote:I have searched for eigenmode for checking where it could be used more and what do i need change to get my addition work...
I hope that i don't need to change the FemResultObject.cpp... I don't have experience with c++
add new function to fem module
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: add new function to fem module
Re: add new function to fem module
Oke that means i have to rebase i guess.
Re: add new function to fem module
you should, and for sure you will have some trouble to rebase, since there was some heavy refactor changes in FEM lately. I tried to make the changes in many small steps (commits). If you have problems just ask here.Jee-Bee wrote:Oke that means i have to rebase i guess.
Re: add new function to fem module
I follow this for rebasing... Now i got an message about merge conflicts...bernd wrote:Code: Select all
# fetch official FreeCAD from github git fetch upstream # checkout the bucklebranch git checkout bucklebranch git status # to check on which branch you are git log -1 --oneline # last commit off buckle branch # rebasing, put all your buckle commits on HEAD of upstream/master git rebase upstream/master
Code: Select all
jee-bee@Picasso:~/FCdev/FreeCAD$ git rebase upstream/master
First, rewinding head to replay your work on top of it...
Applying: Add buckling functionality no gui for ccx solver
Using index info to reconstruct a base tree...
M src/Mod/Fem/FemInputWriterCcx.py
M src/Mod/Fem/FemToolsCcx.py
.git/rebase-apply/patch:63: trailing whitespace.
.git/rebase-apply/patch:115: trailing whitespace.
warning: 2 lines add whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging src/Mod/Fem/FemToolsCcx.py
Auto-merging src/Mod/Fem/FemInputWriterCcx.py
CONFLICT (content): Merge conflict in src/Mod/Fem/FemInputWriterCcx.py
error: Failed to merge in the changes.
Patch failed at 0001 Add buckling functionality no gui for ccx solver
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".
Re: add new function to fem module
I create a duplicate for my bucklebranch because i have difficulties with the rebase stuff.
I hate the rebasing... but i'm happy i create a duplicate...
Code: Select all
jee-bee@Picasso:~/FCdev/FreeCAD$ git status
On branch buckletest
Your branch and 'origin/buckletest' have diverged,
and have 307 and 4 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working directory clean
jee-bee@Picasso:~/FCdev/FreeCAD$ git pull
Auto-merging src/Mod/Fem/importCcxDatResults.py
CONFLICT (content): Merge conflict in src/Mod/Fem/importCcxDatResults.py
Auto-merging src/Mod/Fem/FemInputWriterCcx.py
CONFLICT (content): Merge conflict in src/Mod/Fem/FemInputWriterCcx.py
Automatic merge failed; fix conflicts and then commit the result.
Re: add new function to fem module
somehow it fixed... now compiling
Re: add new function to fem module
Oke i see there is a lot changed in FemInputWriterCcx.py.
what is the best method to fix my branch see
https://github.com/FreeCAD/FreeCAD/blob ... cx.py#L112 (FreeCAD)
and
https://github.com/Jee-Bee/FreeCAD/blob ... cx.py#L113(my branch)
what is the best method to fix my branch see
https://github.com/FreeCAD/FreeCAD/blob ... cx.py#L112 (FreeCAD)
and
https://github.com/Jee-Bee/FreeCAD/blob ... cx.py#L113(my branch)
Re: add new function to fem module
Yeah some bigger changes have taken place. But this part was definitely not well organized. It seams you need to recode this part of your changes.Jee-Bee wrote:Oke i see there is a lot changed in FemInputWriterCcx.py.
what is the best method to fix my branch see
https://github.com/FreeCAD/FreeCAD/blob ... cx.py#L112 (FreeCAD)
and
https://github.com/Jee-Bee/FreeCAD/blob ... cx.py#L113(my branch)
BTW: another bigger change in FEM has taken place. But mainly moving around files, not really changes. We gone make FEM suit for the future
Bernd
Re: add new function to fem module
I noticed some renaming allready... Good to hear even if more difficult for mebernd wrote:BTW: another bigger change in FEM has taken place. But mainly moving around files, not really changes. We gone make FEM suit for the future
Re: add new function to fem module
best is to use my developmentbranch which will be merged into master soon for rebasing.
https://github.com/berndhahnebach/FreeC ... its/femdev
https://github.com/berndhahnebach/FreeC ... its/femdev