-
Notifications
You must be signed in to change notification settings - Fork 50
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
Building Scuff in Windows #230
Comments
I've taken a different approach and have scuff-em running using Docker. |
I just updated the Docker image to use the latest version of scuff-em. I've actually used the fork of @texnokrates (https://github.com/texnokrates/scuff-em), as that has some additional patches on top of the last version in this repository. Let me know if this works as well. |
Hi Johannes. First of all, many thanks for all the work you've done on this. There is good news and bad news. The good news: I got Windows 10 up-to-date, uninstalled Docker and installed the latest version, pulled your new Docker image of scuff, ran the Mie Scattering example, and the output matches The bad news: Using scuff-scatter, the absorbed power reported in the PFT file appears incorrect if the incident field is composed of more than one field. So, for example, I run the Mie scattering example three different ways (which should be identical):
The waves in 2 and 3 add to give the wave in 1, so the results for 1, 2, and 3 should be the same. But here are the outputs in the PFT file at a frequency of 0.1: 1: 2: 3: Here the fourth column (fifth column in the case of 3) is the scattered power and all three are the same so that's good. The third column (fourth in the case of 3) is the absorbed power and 1 matches Yours sincerely, David Wardle. |
Hi David,
with
to use the latest master by Homer. Then you just run If the latest master by Homer doesn't show this problem, let me know and I'll change the image on docker hub to use that. Probably @texnokrates would also be interested, I don't think his changes are supposed to introduce any new bugs...
with
where |
Hi Johannes. I found the information you've provided about making Docker images really helpful (so helpful in fact that I've turned them into a new wiki page). I've also narrowed down when the bug first appeared. I've summarized all the information I have about the bug in a new issue (because it's distinct from the topic of this issue). I leave it over to you to notify @texnokrates as I'm not sure how to do that. Yours sincerely, David Wardle. |
Hi David, don't worry, I get notifications from all issues here. (So the bug apparently isn't "mine", which is good to see.) |
Hi everyone.
I'm trying to build Scuff in MS Windows. From "Scuff-EM on Windows" (#133) I gather this must be possible so I'm trying to reproduce what they have done.
I've installed MinGW (https://osdn.net/projects/mingw) and use this for the build. I
configure
scuff with:./configure --enable-maintainer-mode "$@" --prefix=C:/MinGW/msys/1.0/home/dward/scuff-em-installation --without-openmp --without-hdf5 --with-blas=C:/MinGW/msys/1.0/home/dward/OpenBLAS-.3.13/libopenblas_opteronp-r0.3.13.a --without-python
I'm not sure if the
configure
proceeds correctly --- it outputs a lot of dialogue and I don't know what the dialogue should read --- having a typical dialogue available would be helpful --- but it does end withNow type 'make' to compile and sudo 'make install'
.When I
make
it seems to start in\libs\libhrutil
. It gets throughlibhrutil.cc
with some warnings andProcessArguments.cc
andProcessOptions.cc
without incident. It then has a go atVector.cc
and exits with this error:Vector.cc: In function 'double randU(double, double)':
Vector.cc:464:23: error: 'random' was not declared in this scope; did you mean 'randN'?
464 | { return A + (B-A) * random() * (1.0 / RAND_MAX); }
.........|........................................^~~~~~
.........|........................................randN
make[3]: *** [Vector.lo] Error 1
This has me completely stuck. If anyone can offer any help, I'd be very appreciative.
The text was updated successfully, but these errors were encountered: