in Cooling_Function_Initialize coolingFunctionsMatched=0

Bug #1130720 reported by Harald Höller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Galacticus
Invalid
Low
Andrew Benson

Bug Description

in cooling.cooling_function.F90 in lines 70-72 the code

          coolingFunctionsMatched=0
          !# <include directive="coolingFunctionMethods" type="functionCall" functionType="void">
          !# <functionArgs>coolingFunctionMethods,coolingFunctionsMatched</functionArgs>

leads to the error

"Fatal error in Cooling_Function_Initialize():
number of cooling functions matched does not equal number specified - check that entries in [coolingFunctionMethods] are correct"

if in the parameter file one defines a cooling function since "coolingFunctionsMatched /= coolingFunctionsCount".

Revision history for this message
Andrew Benson (abenson) wrote :

Hi Harald: Can you repost this over at https://bitbucket.org/abensonca/galacticus - I'm using BitBucket for Galacticus now.

Revision history for this message
Andrew Benson (abenson) wrote :

Thanks for reporting this problem. I don't understand exactly what the problem is though. The code definitely works with a cooling function defined (numerous test cases run every night with cooling functions active). The coolingFunctionsMatched variable gets incremented every time an entry in the coolingFunctionMethods parameter matches a known cooling function.

So, either there's a problem parsing your specific parameter file, or an entry you have in coolingFunctionMethods does not match a known cooling function. Can you post your parameter file so I can try to reproduce this?

Revision history for this message
Harald Höller (harald-hoeller) wrote :

The problem does not occur with the code I checked out at bitbucket today, must have been a problem with the xml parsing indeed. For debugging I had written out the two variables "coolingFunctionsMatched " & "coolingFunctionsCount" which in my case were 0 and 1.

Please regard this solved! Sorry for bothering ;)

Revision history for this message
Andrew Benson (abenson) wrote :

OK - marking this as solved.

"For debugging I had written out the two variables "coolingFunctionsMatched " & "coolingFunctionsCount" which in my case were 0 and 1."

This suggests that the name of the cooling function in your parameter file wasn't recognized. That could be due to a typo in the code of course. It might be worth you posting your parameter file anyway, so I can check this.

Changed in galacticus:
status: New → Invalid
importance: Undecided → Low
assignee: nobody → Andrew Benson (abenson)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.