Open AngieNicole-Hernandez opened 2 years ago
Hi AngieNicole-Hernandez,
Sorry for the delay answering this issue. The solution is actually quite easy, I think: MCGPU allows only the use of 15 materials, by default. But this number can be easily increased by modifying the parameter MAX_MATERIALS in the header file (MC-GPU_v1.5b.h):
You can increase MAX_MATERIALS as much as you want, until you run out of GPU memory to store all these material cross-sections.
Let me know if this fixes the problem.
Best regards,
Andreu Badal
Hi AngieNicole-Hernandez, hi Andreu May I ask how do you generate new material files other than it provided? Have you used _MC-GPU_create_materialdata.f ? Do you know any dependency files like "tables.f" or "penelope.f"? Thanks a lot!
Hi, I am trying to generate some images, but I want to use a range of densities for some of the materials, I modified my phantoms a little so that I have more labels so that I can assign, for example, for the adipose tissue I have a label 1, with density=0.917, but I also changed some of the 1 voxel labels for a 3, so that to this adipose tissue I can give density=0.939. So that the [SECTION MATERIAL FILE LIST] in my .in file is something like:
When I run the MC-GPU program, on the INITIALIZATION phase, only 16 values are read:
So the simulation detects voxel values that do not exist in the previous list and it does not continue. Is it possible to do what I'm trying to do and use more voxel values to assign different densities to the same type of material?