JJPPeters / clTEM

OpenCL accelerated multislice simulation for electron microscopy.
https://jjppeters.github.io/clTEM/
13 stars 3 forks source link

TEM functionality not working #128

Closed enriqueam4 closed 1 year ago

enriqueam4 commented 1 year ago

Hi there,

I've recently tried running TEM simulations on a version of clTEM on Windows 11, and on a clean install of clTEM on Windows 10. I was previously able to use the TEM functionality on an earlier version of windows 10. It should be noted that I can still simulate in STEM and CBED modes, but I need the TEM functionality for research. The logfile error references the following:

""" [gui] 2023-06-21 11:42:19,262 (thread:1) ERROR - MainWindow::on_actionImport_default_triggered: Problem importing json settings: Could not open .json file for reading: C:/Users/emejia/AppData/Local/PetersSoft/clTEM/microscopes/default.json [sim] 2023-06-21 11:42:50,467 (thread:p0:d0) ERROR - SimulationWorker::Run: Error performing simulation: Invalid program executable: ccd_ntf_f Build log:

:49:15: error: read-only variable is not assignable input[id].x = real * finalntf; ~~~~~~~~~~~ ^ :50:15: error: read-only variable is not assignable input[id].y = imag * finalntf; ~~~~~~~~~~~ ^ """ Let me know if you have any ideas!
JJPPeters commented 1 year ago

I think this issue has been already fixed, though not in the downloadable versions.

In the install directory there is a kernels folder, you can replace all the files inside with the files in the kernel folder from this repository.

enriqueam4 commented 1 year ago

Appreciate it! Works perfectly now.