jacopo-chevallard / BEAGLE-general

Basic information to get started with the galaxy spectral modelling tool Beagle
https://www.iap.fr/beagle/
9 stars 0 forks source link

Missing keyword in fit_photometry_example.param #18

Closed marinatrevisan closed 8 years ago

marinatrevisan commented 8 years ago

BEAGLE complains about a missing keyword when running fit_photometry_example.param with Docker Toolbox (version 1.6.2), Beagle 0.3.5 on a machine with Ubuntu 14.04:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[ ERROR: Keyword "N_OBJECTS" not found! ] 
[      IN : "read_int_value" ] 
[ MODULE  : "lib_io" ] 
[ BACKTRACE:   
#0  0x7F14EBC10777
#1  0x511642 in print_backtrace at lib_messages.f90:183
#2  0x506F85 in __lib_io_MOD_read_int_value at lib_io.f90:2477 (discriminator 2)
#3  0x4136F0 in beagle at BEAGLE.f90:165
] 
[ EXITING FUNCTION / SUBROUTINE ] 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I added a line with N_OBJECTS = 3 in the fit_photometry_example.param file and Beagle appears to run, returning the following message:

 271 filters defined, out of 300                                maximum     ...done
 ---> fixed                         sfh_type                                   0
 ---> fitted                        mass                                       0
 ---> fitted                        redshift                                   0
 ---> fixed                         attenuation_type                           0
 ---> fitted                        tauV_eff                                   0
 ---> fixed                         mu                                         0
 ---> fitted                        tau                                        1
 ---> fitted                        metallicity                                1
 n_fitted:            5
 # ID            1
 # Jump Ahead by (1)*2^256
 --- LINEAR:  X0 =  2.623E+02 is outside X range --- 8.993E+02 6.010E+04      1646
 ---   Error reported only once. It may occur more than once. ---
 Total CPU time:   0.472507954      seconds

However, no output file is created in the results/ directory....

P.S: I don't know if it is relevant, but I am not using nebular emission (i.e., the keywords TEMPLATES NEBULAR, EMISSION LINES CONFIGURATION, and the parameters nebular_logU, nebular_xi, and nebular_Z are not used). In addition, I am using the SSP models available at http://www.bruzual.org/bc03/Updated_version_2016/BC03_miles_kroupa.tgz.

eclake commented 8 years ago

Hi Marina - are you trying to run with beagle_mode = 3 by any chance? This is a keyword required if you are making a mock catalogue, but shouldn't be required when fitting photometry which would be to run beagle with beagle_mode = 1

marinatrevisan commented 8 years ago

Hi Emma, yes, I was running with beagle_mode = 3 (by the way, I couldn't find the description of the beagle_mode anywhere in the manual)... If I run with beagle_mode = 1, Beagle does not run and I get the following error:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7F225BB02777
#1  0x7F225BB02D7E
#2  0x7F225B23ED3F
#3  0x7F225BBD8C23
#4  0x485ABC in load_fits_catalogue at photometry.f90:225
#5  0x48A7D4 in __photometry_MOD_load_photometric_catalogue at photometry.f90:193
#6  0x4B032E in __beagle_initialization_MOD_initialize_sed_fitting at BEAGLE_initialization.f90:227 (discriminator 2)
#7  0x4136A2 in beagle at BEAGLE.f90:159
marinatrevisan commented 8 years ago

Since the problem is not the keyword, I'm closing this issue and opening another one. :-)