GithubHelp home page GithubHelp logo

jacobwilliams / nlesolver-fortran Goto Github PK

View Code? Open in Web Editor NEW
35.0 5.0 3.0 1.11 MB

Nonlinear Equation Solver with Modern Fortran

License: BSD 3-Clause "New" or "Revised" License

Fortran 100.00%
nonlinear-equation-solver fortran broyden-method newton-raphson nonlinear-equations fortran-package-manager lsqr lusol lsmr quasi-newton differential-correction-algorithm minimum-norm

nlesolver-fortran's Issues

Compilation isn't working for me

Hey, so just as the github page says, I ran the command :

fpm build --profile release

Yet the compilation goes well until the part

Depuis https://github.com/jacobwilliams/LSMR

  • tag 1.0.0 -> FETCH_HEAD

After that I get the error :

cmd_build:model error:Key fortran is not allowed in package file
STOP 1

I am using Ubuntu 22.04 and gfortran 11.4.

Segfault for large problems when using Broyden

This line

fjac = prev_fjac + &
    matmul((delf-matmul(prev_fjac,delx)),&
    transpose(delx))/delxmag2

will segfault on intel for a large problem (e.g., n=1406, m=1200).

What can we do about it?

OpenMP

It seem broken when using OpenMP on an Apple Silicon Mac:

fpm run halo_solver --profile release --flag "-O2 -fopenmp" -- examples/example.json

results in:

 ----------------------
 Solving...
 ----------------------
 
ITER                        NORM(X)                        NORM(F)
   1             8.4871544844105244             0.0000000000000000
 
 ----------------------
 Solution...
 ----------------------

Using the solver without providing the jacobian

Hi,
Thanks for making your codes available. I'm trying to use them to solve a collocation problem. I wonder whether it is possible to avoid providing the jacobian of the function (ie letting your code computing it numerically). From the source code it looks like grad is mandatory. Is this the case?
Thanks and best,
Gianni

Support for CMake

Hello,
first of all, thank you for the library.
I was wondering if it is possible to compile the library with CMake because i need to use the library for a personal project that has the dependencies already created with CMake.

Best wishes,
Nicola

add topics

I suggest adding the topics nonlinear-equations, newton-raphson.

single and quad precision

The LAPACK routines are only double precision, so this library isn't going to work when compiling with single or quad precision.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.