-
Notifications
You must be signed in to change notification settings - Fork 16
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
Is Palette selected when installing Amrvis with spack? #13
Comments
amrvis searches several places, in a given order, for a defaults file, and the palette should be set in the first that it finds. In order, it looks for:
So, I believe that you would need to find the amrvis source folder in the Spack install and grab a sample amrvis.defaults from there, or pull one from the GitHub repo. Then you can put this into your home folder with reasonable default settings, as well as putting a modified version in the pwd of a folder you are working where you want to set specific settings for a particular setup. In any of these, you can set the palette that it will use for that case (or by default for you). I hope that makes sense. Tough to write this out.... :) |
Thanks for the reply @drummerdoc. I was able to find a gzipped git repo for Amrvis that spack caches. Rather than messing with spack's management system I simply pulled another copy of the repo to something like Amrvis appears to recognize the plot file since solution values appear on the right, and when I click-around the domain with the mouse. Perhaps I do not understand Palette? Am I supposed to set something like 'greyscale' or 'blackbody'? |
Ahh, the ole 8bit visual problem! @ajnonaka or @asalmgren should have the best-guess fix for that. At the risk of speaking far outside anything I understand, Xwindows is weird and involves a lot of black magic about how it decides to paint the screen. Amrvis requires a specific bit depth support, and there are tricks to make your system aware that it can provide that support. I don't have those laying around, but surely one of those listed above does... |
########################### Section "Device" Then restart the x server or reboot. |
Well, @ajnonaka, this looked promising but I still get an all-black view of the solution. Tried: Here is a naive question. To use the Palette in my |
#14 might be the long-awaited answer to this issue. |
#14 fixes the palette but does not solve that Spack does not yet install the default config and palette files. Action items:
|
Does someone like to take this on? Maybe @wyphan or @etpalmer63? :) |
I'll add it to my list but I will likely need to bother you with questions, as usual 😄 |
A fix is in the process: spack/spack#30942 |
According to the Amrvis documentation (step 2 here), after cloning the amrvis repository one should point the palette variable in
~/.amrvis.defaults
to the appropriate file within your local amrvis repo. How is this resolved when Amrvis is installed via spack?I was able to install amrvis, for example with
spack install amrvis dims=2
However, attempting to visualize a plot file results in a warning
The text was updated successfully, but these errors were encountered: