Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:01

0001 #!/bin/bash -l 
0002 
0003 usage(){ cat << EOU
0004 cxs_Hama.sh
0005 =============
0006 
0007 ::
0008 
0009     cx
0010     ./cxs_Hama.sh         # workstation
0011     ./cxs_Hama.sh grab    # laptop
0012     ./cxs_Hama.sh ana     # laptop  : produces geometry plot 
0013 
0014 
0015 EOU
0016 }
0017 
0018 
0019 
0020 #geom=Hama_1
0021 geom=HamaXZ_1
0022 #geom=HamaYZ_1
0023 #geom=HamaXY_1
0024 
0025 #geom=Hama_2
0026 #geom=Hama_4
0027 #geom=Hama_8
0028 #geom=Hama_16
0029 
0030 export GEOM=${GEOM:-$geom}
0031 
0032 isel=
0033 cfbase=
0034 ce_offset=0,0,0   # SFrameGenstep.cc now asserts if not multiple_of_3
0035 ce_scale=1        # have changed default of this to 1 : so can remove 
0036 gsplot=1
0037 
0038 
0039 if [ "$GEOM" == "Hama_1" ]; then
0040 
0041     moi=Hama
0042     cegs=16:0:9:500   # XZ works 
0043     gridscale=0.10
0044 
0045 elif [ "$GEOM" == "HamaXZ_1" ]; then
0046 
0047     moi=Hama
0048     cegs=16:0:9:500   
0049     gridscale=0.10
0050 
0051 elif [ "$GEOM" == "HamaYZ_1" ]; then
0052 
0053     moi=Hama
0054     cegs=0:16:9:500  
0055     gridscale=0.10
0056 
0057 elif [ "$GEOM" == "HamaXY_1" ]; then
0058 
0059     moi=Hama
0060     cegs=16:9:0:500 
0061     gridscale=0.10
0062 
0063 elif [ "$GEOM" == "Hama_2" ]; then
0064 
0065     moi=Hama
0066     cegs=32:0:18:500
0067     gridscale=0.10
0068 
0069 elif [ "$GEOM" == "Hama_4" ]; then
0070 
0071     moi=Hama
0072     cegs=64:0:36:100
0073     #gridscale=0.10
0074     gridscale=0.20
0075     gsplot=0
0076 
0077 elif [ "$GEOM" == "Hama_8" ]; then
0078 
0079     moi=Hama
0080     cegs=128:0:72:100
0081     gridscale=0.40
0082     gsplot=0
0083 
0084 elif [ "$GEOM" == "Hama_16" ]; then
0085 
0086     ##  CUDA error on synchronize with error 'an illegal memory access was encountered' (/data/blyth/junotop/opticks/CSGOptiX/CSGOptiX.cc:342)
0087     moi=Hama
0088     cegs=256:0:144:10
0089     gridscale=0.20
0090     gsplot=0
0091 
0092 else
0093 
0094     echo $msg ERROR GEOM $GEOM unhandled 
0095     exit 1 
0096 
0097 fi
0098 
0099 source ./cxs.sh $*
0100