-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add flexibility to VDC #41
Comments
Hi Andrea, yes indeed - but please base off the VDC branch. There are a few changes in there that will be moved into develop shortly (but default colour space is currently broken and waiting for Daniel to fix it). maybe add a --snapshot command line option, taking individual numbers or ranges, comma separated? |
OK. I have created the branch "vdc_based_on_vdc_upstream" which I have just pushed. Could you have a look at it? If it is fine I will do a pull request. I have created two distinct command line arguments "--frame-start" and "--frame-final" to allow an independent control of the initial and final snapshots to render. |
I've noticed an issue with how vdc processes the spin metadata files. Without the --frame-final parameter provided manually, the program doesn't know the actual number of files and always gives the error "Error! Spins metadata file spins-000000xx.meta cannot be opened. Exiting". This happens because the vdc_final_file_id is set to a large number by default and never gets changed. I'm not sure how to fix this since none of the input files say how many meta data files there are. |
I think I found out how to fix it. Looks like I had made a small change to spins.cpp with the aim of helping that actually caused this issue |
So, I added an Error massage that triggered if you provided a "--frame-final" which was larger than the number of frames availible. Unfortunately, this would always trigger if frame-final wasn't provided since the default value is 99999. It would be nice if we could set the default value of frame-final internally but I'm guessing this is difficult to implement since the number of spin meta files changes according to the number of processors used int the simulation? |
Yep, the problem is that the spin file parsing exits when it can't find the next file - it should actually fail silently at this step (an error should only be triggered if a data file cannot be found). The following patch fixes the bug. diff --git a/util/vdc/spins.cpp b/util/vdc/spins.cpp
|
Hi Richard, I was thinking to tweak VDC to allow the possibility for the user to specify which snapshots to process. Is it OK?
The text was updated successfully, but these errors were encountered: