FuTY / mcgpu

Automatically exported from code.google.com/p/mcgpu
1 stars 0 forks source link

Question regarding the generation of material files #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to create a new material for MC-GPU simulation and failed.
I copied the "penelope.f" (2006 version) to the "MC-GPU_material_files" 
directory,
and typed "g77 -O MC-GPU_create_material_data.f"
This produced an error as follows:

$ g77 -O MC-GPU_create_material_data.f
/tmp/cccYAEhq.o: In function `MAIN__':
MC-GPU_create_material_data.f:(.text+0x4b0): undefined reference to `peinit_'
MC-GPU_create_material_data.f:(.text+0x8cd): undefined reference to `phmfp_'
 ...

Can you give me more detail information how to compile the 
"MC-GPU_create_material_data.f" file and how to use the executable file to 
create a new material?
Does your code use "pendbase" database? then, where should I locate this 
"pendbase" folder in your MC-GPU directory?

Original issue reported on code.google.com by andre...@gmail.com on 30 Mar 2011 at 3:34

GoogleCodeExporter commented 9 years ago
To compile the program that creates the material files for MC-GPU 
(MC-GPU_create_material_data) you need to add penelope.f to the compilation 
line:
 "g77 -O MC-GPU_create_material_data.f penelope.f -o MC-GPU_create_material_data.x"

Then, when you run the executable file it will ask for all the information that 
is required to generate the file.
The program uses linear interpolation and therefore it is good to use a large 
number of bins (look the example files).
To generate a particular material, you will need the corresponding material 
file generated with the material.f program from PENELOPE 2006 (this is how the 
"pendbase" database is indirectly used).

Original comment by andre...@gmail.com on 30 Mar 2011 at 3:47

xushuo0629 commented 1 year ago

Hello, I wonder if anyone can share "penelope.f" (2006 version)? I can't find it on the Internet.