Download CO5BOLD User Manual

Transcript
3.7
Compiler Macros
31
◦ undefined: (default) no timing information
◦ defined: call subroutines to measure elapsed time
• rhd_rad3d_dir_t01:
in rhd_lhdrad_module.F90, (“rhd radiation 3 dimensions direction timing 01”).
Category: additional output.
Produce timing information for the routines which solves the radiation transport equation
for one direction field. The timing measurement are called very frequently and might slow
down the code. It should not be used in conjunction with OpenMP. Values:
◦ undefined: (default) no timing information
◦ defined: call subroutines to measure elapsed time
• rhd_rad3d_step_t01:
in rhd_lhdrad_module.F90, (“rhd radiation 3 dimensions step timing 01”).
Category: additional output.
Produce timing information with main 3D radiation transport routine. It can be used
together with OpenMP and should cause no noticeable performance loss. Values:
◦ undefined: (default) no timing information
◦ defined: call subroutines to measure elapsed time
• rhd_shortrad_operator_l01:
in rhd_shortrad_module.F90, (“rhd short-characteristics radiation operator loop 01”).
Category: performance enhancement, selection of approximation.
Choose type of short characteristics operator. The operators usually come in pairs (1/2,
3/4, 5/6). There is a development from 1/2 over 3/4 to 5/6 towards higher stability. Both
members of each pair should do the same operation but use different ways to do a case
distinction. The ’even’ operator has in most case the better performance. But the ’odd’
operator might be saver to use. Values:
◦ 0: simple test operator, fast but results are utterly useless!
◦ 1: case distinction with “if..then..else” construct.
◦ 2: case distinction with masks (weights 0.0 or 1.0).
◦ 3: case distinction with “if..then..else” construct, slope reduction of source function.
◦ 4: case distinction with masks (weights 0.0 or 1.0), slope reduction of source function.
◦ 5: case distinction with “if..then..else” construct, modified slope reduction of source
function.
◦ 6: (default) case distinction with masks (weights 0.0 or 1.0), modified slope reduction
of source function.
◦ 8: test version.
• rhd_shortrad_operator_l02:
in rhd_shortrad_module.F90, (“rhd short-characteristics radiation operator loop 02”).
Category: performance enhancement.
Select the way the short characteristics operator is accessed. Values:
◦ 0: (default) The routine with the short characteristics operator is called within a loop
and should be inlined.
◦ 1: The program fragment with the short characteristics operator is included. No
inlining necessary.