Skip to content

Commit

Permalink
fix for bispectrum output
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Mar 25, 2024
1 parent a74bc84 commit eaace73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fortran/SeparableBispectrum.f90
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ subroutine GetBispectrum(State,CTrans)

if (BispectrumParams%Slice_Base_L>0 .or. BispectrumParams%FullOutputFile/='') then
!write out slice in (muK)^3 units
allocate(bispectrum_files(nbispectra* BispectrumParams%ndelta))
allocate(bispectrum_files(nbispectra* max(1, BispectrumParams%ndelta)))
Bscale=(COBE_CMBTemp*1d6)**3/InternalScale**2;
do bispectrum_type=1,nbispectra
if (BispectrumParams%Slice_Base_L>0) then
Expand All @@ -757,8 +757,9 @@ subroutine GetBispectrum(State,CTrans)
end do
end if
if (BispectrumParams%FullOutputFile/='') then
call bispectrum_files(bispectrum_type)%CreateFile(concat(output_root,BispectrumParams%FullOutputFile, &
'_', BispectrumNames(bispectrum_type), file_tag, '.dat'))
call bispectrum_files(bispectrum_type)%CreateFile(concat(trim(output_root), &
BispectrumParams%FullOutputFile, '_', BispectrumNames(bispectrum_type), &
file_tag, '.dat'))
end if
end do
do il1= 1, SampleL%nl
Expand Down

0 comments on commit eaace73

Please sign in to comment.