Comments (5)
@jloizu Could you give / point out a test case? I will check this.
from spec.
Here is an input file that does not work (Lfindzero=1) but does work if you set Lfindzero=2.
(you have to remove the txt extension)
from spec.
In minpack subroutine "hybrd", the function-to-optimize, "fcn1", is called with value irevcm=2. The logic of "fcn1" is that if irevcm=0 or 1, it works normally, otherwise returns an error.
Careful inspection shows "fcn1" should not report an error but should work exactly the same as irevcm=1. This happens when "fdjac1", the subroutine calculates the derivatives using forward finite difference, passes irevcm=2 to "fcn1".
A quick fix will be making "fcn1" do the same job in =1 and =2 case.
I have pushed a new branch, Lfindzero-fix, and created a pull request. Tests are welcome before merging.
from spec.
Sorry, I was distracted by other things. zhisong's fix should work, but I cannot test it in a quick time. I don't have a valid environmental file on PPPL cluster to compile & run SPEC (the current one I have somehow doesn't work).
The variable irevcm is historic and was used for NAG C05PDF & C05NDF. When I replaced the two NAG subroutines by hybrd & hybrj in MINPACK, I used irevcm to play as iflag need by MINPACK subroutines.
from spec.
Yes Zhisong's fix seems to solve the problem! I tested the branch and everything looks good. I am now merging it into master.
from spec.
Related Issues (20)
- GMRES error HOT 10
- Segmentation faults when compiled with cmake HOT 6
- Problem with master branch HOT 4
- Issue when restarting from .end file HOT 6
- Help needed to install python wrappers HOT 15
- Wrapper will not compile (reserved python words?) HOT 3
- Problem running tests on master branch HOT 3
- python_wrapper Makefile setup HOT 2
- Help needed for compilation with cmake HOT 8
- Question about force-gradient HOT 4
- Bug in force gradient when Lrzaxis=1 ?
- MATLAB metric subroutine needs fix HOT 2
- Python wrapper compilation for Henneberg representation branch HOT 2
- VMEC initializer HOT 2
- Read initial guess with python wrappers HOT 5
- Cannot install f90wrap HOT 7
- Question about matrix free method HOT 2
- SPEC license? HOT 5
- Installation on mac m1 HOT 16
- py_spec installation is borken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spec.