-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug in SetLayer and SetLayerThickness #95
base: master
Are you sure you want to change the base?
Conversation
Previously SetLayer and SetLayerThickness had no effect. This was due to the wrong function being called. I added the material argument to S4_Simulation_SetLayer in SetLayer and called Simulation_ChangeLayerThickness in SetLayerThickness.
Should solve #74 btw |
Do I need to recompile after modification? |
Why do I get an error when recompiling? |
Yes you have to recompile after you merge the pull request. I don't know why you get an error, if you want help you'll have to provide more than just "I get an error". And yes the thing you pasted is one of the things I changed |
Hamdav, thank you for your reply!!! When I tried to recompile again, the error is gone. But a new problem arose during my use, when I use the S:Clone() function, I always get an error of Segmentation fault (core dumped). Have you ever encountered such a problem? This problem has been bothering me for many days. |
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
Hamdav, thank you for your reply!!! When I tried to recompile again, the error is gone. But a new problem arose during my use, when I use the S:Clone() function, I always get an error of Segmentation fault (core dumped). Have you ever encountered such a problem? This problem has been bothering me for many days.
***@***.***
On 3/16/2022 ***@***.***> wrote:
Yes you have to recompile after you merge the pull request. I don't know why you get an error, if you want help you'll have to provide more than just "I get an error". And yes the thing you pasted is one of the things I changed
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
|
No, sorry. It is usually an indication that you are accessing memory that you are not allowed to access, but it can be many things... |
Previously SetLayer and SetLayerThickness had no effect.
This was due to the wrong function being called.
I added the material argument to S4_Simulation_SetLayer in SetLayer
and called Simulation_ChangeLayerThickness in SetLayerThickness.
If you before my commit ran the code at the bottom, it printed
which is clearly wrong, the new thickness should change the result.
After the commit it prints
The lua code to test it was
I also found that testing/runtests.sh wasn't functioning, but haven't done anything about that.
Anyway, nice work apart from this :)