EMsoft-org / EMsoft

Public EMsoft repository
Other
61 stars 94 forks source link

Issues with package configuration - EMsoftinit #134

Open StefanoVespucci opened 3 years ago

StefanoVespucci commented 3 years ago

EMsoftIni EMsoftIniConfig

Hello,

I am having issues with the initial configuration of the EMsoft packages. When I run the EMsoftini.exe program I get an error message after inserting the user name, see attached pictures. When I look inside the EMsoftConfig.json file I see that not all the fields are automatically generated. Also, there is no back-facing curly bracket at the end of the document, suggesting me that something went wrong.

Even if the configuration is clearly not completed, I am still able to run a limited number of programs, but not all of them. Is this issue known or am I doing something wrong? Thank you in advance for your help.

Regards,

Stefano

elena-pascal commented 3 years ago

I wonder if removing the $ in reads from ln 1303 and 1313 in EMsoftLib\local.f90.in would fix it, if someone has a Windows build and wants to try it

elena-pascal commented 3 years ago

Until the fix for this goes upstream, you can go round not using the config file at all. If you

  1. Remove the json config file. This way all programs will fall back to using absolute paths. They throw warnings but ignore that.
  2. You are now in charge of the absolute paths, so make sure the paths are given with the names of files in nml files. If there is no path given the software will start looking in current directory.
  3. You have to manually copy the template files from the template folder as calling -t will go through config file and fail. So for instance copy the EMLACBED.template in your working directory and go on from there.
StefanoVespucci commented 3 years ago

Thank you Elena, I tried to copy the EMLACBED.template file into the bin folder, and when I run the EMLACBED.exe file I get the following error message: EMLACBED It seems like the software is looking for the EMLACBED.nml file, which is not present in any folder. By the way, I have also removed the configuration file as suggested by you.

elena-pascal commented 3 years ago

Sorry, I wasn't too explicit. You have to rename the <file>.template to <file>.nml. And also add the correct info in the nml file. .template is the example for the .nml file

StefanoVespucci commented 3 years ago

Yep, now it worked! 👍 :) output_LACBED.txt Thank you very much! I guess I now need IDL scripts to visualize the LACBED data?!

elena-pascal commented 3 years ago

Nice! The output is a h5 file. But yeah all the nice visual tools are in IDL.

StefanoVespucci commented 3 years ago

OK! Thank you very much for your help Elena!

Regards,

Stefano

elena-pascal commented 3 years ago

Actually I think the IDL scripts are not in the nightly binary builds, or I can't see them.

@marcdegraef would be able to answer if the IDL scripts play nicely with the binary build.

ZacharyVarley commented 3 years ago

I had a nearly identical issue on Ubuntu 20.04, although the Fortran error thrown was "end of file" when I tried to run EMsoftinit. It turns out that I had been closely following the Wiki which led me to installing an older version of the SDK with some hiccups such as HDF5 version 1.8.20 not hosted (404'ing) at the bluequartz address in the make files. I solved these issues by following the READme https://github.com/EMsoft-org/EMsoft/ which led me to install an updated SDK.