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

vscode settings for yambo #171

Open
sangallidavide opened this issue Jan 17, 2025 · 0 comments
Open

vscode settings for yambo #171

sangallidavide opened this issue Jan 17, 2025 · 0 comments

Comments

@sangallidavide
Copy link
Member

I tried to play a bit, but did not get much far.

I put them here in case anyone is interested in improving them

// Place this in your settings.json file to enable GitHub Copilot for Fortran
{
  "files.associations": {
      "*.F": "FortranFreeForm",
  },
  "github.copilot.enable": {
    "Fortran": "true",
    "Fortran77": "true",
  },
  "fortran.linter.compiler": "gfortran",
  "fortran.linter.compilerPath": "/usr/bin/gfortran",
  "fortran.logging.level": "Debug",
  "fortran.fortls.preprocessor.definitions": {
      "_HDF5_LIB": "",
      "_HDF5_IO": "",
      "_MPI": "",
      "YAMBO_ALLOC(A,x)": "allocate(A x)"
  },
  "fortran.linter.extraArgs": ["-Wall", "-Wextra", "-pedantic", "-std=f2008",
      "-cpp", "-D_HDF5_LIB", "-D_HDF5_IO", "-D_MPI", "-DYAMBO_ALLOC",
      "-DDEV_SUB_ALT(x)=x##_cpu"
  ],
  "fortran.linter.initialize": false,
  "fortran.experimental.keepInitDiagnostics": false,
  "fortran.linter.includePaths": [
    "${libsFolder}/include/",
    "${libsFolder}/v4/parallel/include",
    "${libsFolder}/single/include/",
    "${workspaceFolder}/src/modules/",
    "${workspaceFolder}/src/parser/",
    "${workspaceFolder}/include/",
    "${workspaceFolder}/include/headers/common",
    "${workspaceFolder}/include/version",
    "${workspaceFolder}/include/system",
    "${workspaceFolder}/include/headers/parser"
  ],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant