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

Four layer reflectivity model not working #30

Open
smk78 opened this issue Sep 26, 2022 · 0 comments
Open

Four layer reflectivity model not working #30

smk78 opened this issue Sep 26, 2022 · 0 comments

Comments

@smk78
Copy link
Contributor

smk78 commented Sep 26, 2022

Not sure if this issue should go here or against sasmodels?

Running 5.0.5 release on W10/x64.

In SasView/sasview#1498 (comment) @Butler commented:

I think there used to be (... a reflectivity slab model) as part of the very early suite of models though I think they have been removed.

Coincidentally, recently attempting to use the four layer neutron reflectivity model (http://marketplace.sasview.org/models/89/) from the Marketplace, the FitPage populates with the model but Compute generates a very ugly error and nothing happens:

10:33:40 - INFO:  --- SasView session started, version 5.0.5, 2022 ---
10:33:40 - INFO: Python: 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
10:34:22 - INFO: C:\SasView-5.0.5\tinycc-data\tcc.exe -shared -rdynamic -Wall C:\Users\zzzzz\AppData\Local\Temp\sas64_multi_reflec_212DEEA3_794x270i.c -o C:\Users\zzzzz\.sasview\compiled_models\sas64_multi_reflec_212DEEA3.so
10:34:25 - INFO: C:\SasView-5.0.5\tinycc-data\tcc.exe -shared -rdynamic -Wall C:\Users\zzzzz\AppData\Local\Temp\sas64_multi_reflec_212DEEA3_f7ou8t8w.c -o C:\Users\zzzzz\.sasview\compiled_models\sas64_multi_reflec_212DEEA3.so
10:34:25 - ERROR: Traceback (most recent call last):
  File "sasmodels\kerneldll.py", line 198, in compile_model
    subprocess.check_output(command, shell=shell, stderr=subprocess.STDOUT)
  File "subprocess.py", line 415, in check_output
  File "subprocess.py", line 516, in run
subprocess.CalledProcessError: Command '['C:\\SasView-5.0.5\\tinycc-data\\tcc.exe', '-shared', '-rdynamic', '-Wall', 'C:\\Users\\zzzzz\\AppData\\Local\\Temp\\sas64_multi_reflec_212DEEA3_794x270i.c', '-o', 'C:\\Users\\zzzzz\\.sasview\\compiled_models\\sas64_multi_reflec_212DEEA3.so']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sas\sascalc\data_util\calcthread.py", line 269, in _run
  File "sas\qtgui\Perspectives\Fitting\ModelThread.py", line 203, in compute
  File "sasmodels\sasview_model.py", line 713, in calculate_Iq
    return self._calculate_Iq(qx, qy)
  File "sasmodels\sasview_model.py", line 721, in _calculate_Iq
    self.__class__._model = core.build_model(self._model_info)
  File "sasmodels\core.py", line 339, in build_model
    return kerneldll.load_dll(source['dll'], model_info, numpy_dtype)
  File "sasmodels\kerneldll.py", line 301, in load_dll
    filename = make_dll(source, model_info, dtype=dtype)
  File "sasmodels\kerneldll.py", line 278, in make_dll
    compile_model(source=filename, output=dll)
  File "sasmodels\kerneldll.py", line 201, in compile_model
    raise RuntimeError("compile failed.\n%s\n%s"%(command_str, output))
RuntimeError: compile failed.
C:\SasView-5.0.5\tinycc-data\tcc.exe -shared -rdynamic -Wall C:\Users\zzzzz\AppData\Local\Temp\sas64_multi_reflec_212DEEA3_794x270i.c -o C:\Users\zzzzz\.sasview\compiled_models\sas64_multi_reflec_212DEEA3.so
C:/Users/zzzzz/.sasview/plugin_models/multi_reflec.c:10: error: ';' expected (got "cfloat")
10:34:25 - ERROR: Traceback (most recent call last):
  File "sasmodels\kerneldll.py", line 198, in compile_model
    subprocess.check_output(command, shell=shell, stderr=subprocess.STDOUT)
  File "subprocess.py", line 415, in check_output
  File "subprocess.py", line 516, in run
subprocess.CalledProcessError: Command '['C:\\SasView-5.0.5\\tinycc-data\\tcc.exe', '-shared', '-rdynamic', '-Wall', 'C:\\Users\\zzzzz\\AppData\\Local\\Temp\\sas64_multi_reflec_212DEEA3_f7ou8t8w.c', '-o', 'C:\\Users\\zzzzz\\.sasview\\compiled_models\\sas64_multi_reflec_212DEEA3.so']' returned non-zero exit status 1.

This model was uploaded in Dec 2017 when the current release was 4.1.2, but that throws the same 'cfloat' error.

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