[yt-users] Fortran kD Tree Setup

Francia F. Riesco ff2214 at columbia.edu
Wed Aug 29 10:05:01 PDT 2012


    Dear All,
    First, thank you for the previous help that I got from the ML. Now I
     have another issue.
     Traceback (most recent call last):
        File "/astro/py/halo_finder.py", line 14, in <module>
          hp = HP.HaloProfiler(fn, halo_list_file='HopAnalysis.out')
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_profiler/multi_halo_profiler.py", line 310,  
in
     __init__
          self._load_halo_data()
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_profiler/multi_halo_profiler.py", line 967,  
in
     _load_halo_data
          self._run_hop(hop_file)
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_profiler/multi_halo_profiler.py", line 1124,  
in
     _run_hop
          **self.halo_finder_kwargs)
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py", line 2268,  
in
     __init__
          premerge=premerge, tree=self.tree)
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py", line 1639,  
in

- Ignored:
     __init__
          HaloList.__init__(self, data_source, dm_only)
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py", line 1067,  
in
     __init__
          self._run_finder()
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py", line 1667,  
in
     _run_finder
          tree=self.tree)
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 73,  
in
     __init__
          self._chain_hop()
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 1536,  
in
     _chain_hop
          self._init_kd_tree()
        File
      
"/astro/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 351,  
in
     _init_kd_tree
          fKD.dens = na.zeros(self.size, dtype='float64', order='F')
     NameError: global name 'fKD' is not defined

     I tried to install Fortran kD Tree Setup
      
http://yt-project.org/doc/analysis_modules/running_halofinder.html?highlight=friend%20friend

     But I got the follow error.
     Using Forthon ()
     Forthon -F gfortran --compile_first fKD_source --no2underscores
     --with-numpy --fopt "-O3" fKD fKD_source.f90
     Usage: Forthon [options] pkgname [extra Fortran or C files to be
     compiled or objects to link] [options for distutils]

     Forthon: error: no such option: --with-numpy
     make: *** [fKD] Error 2
     X-Riesco-Francia:kdtree friesco$ sudo make
     Using Forthon ()
     Forthon -F gfortran --compile_first fKD_source --no2underscores
     --with-numpy --fopt "-O3" fKD fKD_source.f90
     Usage: Forthon [options] pkgname [extra Fortran or C files to be
     compiled or objects to link] [options for distutils]

     Forthon: error: no such option: --with-numpy
     make: *** [fKD] Error 2

     I am using Mac IOS Lion 10.7.4 and the latest YT build
     Thank in Advance



More information about the yt-users mailing list