Git Product home page Git Product logo

Comments (4)

k-yoshimi avatar k-yoshimi commented on September 25, 2024

@ultimatile
ご報告ありがとうございます。
動作確認の上修正後ご連絡しますので、それまで今しばらくお待ちください。

from hphi.

k-yoshimi avatar k-yoshimi commented on September 25, 2024

@ultimatile
リスタート時にメモリ再確保する際の処理について、
三重対角化行列の固有ベクトルのメモリ再確保に漏れがありました。
テストでは偶然通っていたようです。ご指摘大変助かりました。

次のバージョンでは本修正を取り入れる予定ですが、取り急ぎは
Lanczos_EigenValue.cにあるReadTMComponents関数のメモリ再確保部分について、

 if(iFlg==0) {
    alpha = (double *) realloc(alpha, sizeof(double) * (i_max + X->Def.Lanczos_max + 1));
    beta = (double *) realloc(beta, sizeof(double) * (i_max + X->Def.Lanczos_max + 1));
    for (i = 0; i < X->Def.nvec + 1; i++) {
      vec[i] = (complex double *) realloc(vec[i], (i_max + X->Def.Lanczos_max + 1) * sizeof(complex double));
    }
  }
  else if(iFlg==1){
    alpha=(double*)realloc(alpha, sizeof(double)*(i_max + 1));
    beta=(double*)realloc(beta, sizeof(double)*(i_max + 1));
    for (i = 0; i < X->Def.nvec + 1; i++) {
      vec[i] = (complex double *) realloc(vec[i], (i_max + X->Def.Lanczos_max + 1) * sizeof(complex double));
    }
  }

と変更しvecについてメモリの再確保をするようにした上で、リビルドしてご使用いただけるでしょうか?
お手数ですがよろしくお願いします。

from hphi.

ultimatile avatar ultimatile commented on September 25, 2024

動きました,ありがとうございます.

from hphi.

k-yoshimi avatar k-yoshimi commented on September 25, 2024

@ultimatile
こちらこそご報告ありがとうございました!

from hphi.

Related Issues (20)

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.