Skip to content
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

exporting in wannier90-like format #21

Merged
merged 25 commits into from
Nov 29, 2022
Merged

Conversation

aoymt
Copy link
Contributor

@aoymt aoymt commented Nov 22, 2022

UHFモードに wannier90(-like)形式での出力を追加

  • calcmode = "uhfk" で有効になる。exportall=0 で non-zero 要素のみ出力

@k-yoshimi
Copy link
Contributor

@aoymt

mVMCでビルド時に以下のエラーが出たので修正をお願いします。

Building C object src/StdFace/src/CMakeFiles/StdFace.dir/export_wannier90.c.o
/Users/k-yoshimi/program/test_stdface/mvmc/mVMC/src/StdFace/src/export_wannier90.c:816:20: error: no member named 'fileprefix' in 'struct StdIntList'
  if (strcmp(StdI->fileprefix, "****")==0) {
             ~~~~  ^
/Users/k-yoshimi/program/test_stdface/mvmc/mVMC/src/StdFace/src/export_wannier90.c:819:40: error: no member named 'fileprefix' in 'struct StdIntList'
    snprintf(buf, 4096, "%s_%s", StdI->fileprefix, fname);
                                 ~~~~  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.0.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
/Users/k-yoshimi/program/test_stdface/mvmc/mVMC/src/StdFace/src/export_wannier90.c:837:13: error: no member named 'export_all' in 'struct StdIntList'
  if (StdI->export_all != StdI->NaN_i) is_export_all = StdI->export_all;
      ~~~~  ^
/Users/k-yoshimi/program/test_stdface/mvmc/mVMC/src/StdFace/src/export_wannier90.c:837:62: error: no member named 'export_all' in 'struct StdIntList'
  if (StdI->export_all != StdI->NaN_i) is_export_all = StdI->export_all;

@aoymt
Copy link
Contributor Author

aoymt commented Nov 29, 2022

@k-yoshimi
コードを修正しました。

@k-yoshimi
Copy link
Contributor

@aoymt
修正ありがとうございます。
無事、HΦ、mVMCでテストが通りましたのでmergeします。

@k-yoshimi k-yoshimi merged commit 803380a into issp-center-dev:master Nov 29, 2022
@k-yoshimi k-yoshimi mentioned this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants