| 1 |
module initialise |
| 2 |
implicit none |
| 3 |
!! |
| 4 |
!! initialise some variables |
| 5 |
!! this should only be called at code start |
| 6 |
!! |
| 7 |
contains |
| 8 |
|
| 9 |
subroutine defaults_set_initial |
| 10 |
use filenames, only:rootname |
| 11 |
use labels, only:label,labeltype,iamvec,labelvec,set_default_labels,reset_columnids |
| 12 |
use limits, only:lim,range |
| 13 |
use particle_data, only:maxpart,maxstep,maxcol |
| 14 |
use settings_data, only:UseTypeInRenderings,device |
| 15 |
integer :: i |
| 16 |
! |
| 17 |
!--limits (could set them to anything but min & max must be different |
| 18 |
! to enable them to be reset interactively if not set elsewhere) |
| 19 |
! |
| 20 |
lim(:,1) = 0. |
| 21 |
lim(:,2) = 1. |
| 22 |
range(:,:) = 0. |
| 23 |
call reset_columnids() |
| 24 |
! |
| 25 |
!--filenames |
| 26 |
! |
| 27 |
rootname = ' ' |
| 28 |
! |
| 29 |
!--data array sizes |
| 30 |
! |
| 31 |
maxpart = 0 |
| 32 |
maxcol = 0 |
| 33 |
maxstep = 0 |
| 34 |
! |
| 35 |
!--labels |
| 36 |
! |
| 37 |
call set_default_labels(label) |
| 38 |
|
| 39 |
! particle types |
| 40 |
labeltype(1) = 'gas' |
| 41 |
do i=2,size(labeltype) |
| 42 |
if (i > 9) then |
| 43 |
write(labeltype(i),"(a,1x,i2)") 'type',i |
| 44 |
else |
| 45 |
write(labeltype(i),"(a,1x,i1)") 'type',i |
| 46 |
endif |
| 47 |
enddo |
| 48 |
UseTypeInRenderings(:) = .false. |
| 49 |
UseTypeInRenderings(1) = .true. |
| 50 |
|
| 51 |
! vector labels |
| 52 |
iamvec(:) = 0 |
| 53 |
labelvec = ' ' |
| 54 |
|
| 55 |
! device from command line |
| 56 |
device = ' ' |
| 57 |
|
| 58 |
end subroutine defaults_set_initial |
| 59 |
|
| 60 |
end module initialise |