Simulation Core
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

77 lignes
1.8 KiB

  1. subroutine Bit_Specification
  2. use sROP_Other_Variables
  3. use sROP_Variables
  4. use CStringConfigurationVariables
  5. implicit none
  6. INTEGER :: io
  7. integer :: i , BitClass_name
  8. real(8) :: rd
  9. !H1=1.9
  10. !H2=7.
  11. !H3=1.
  12. !w_d_max=7.
  13. Bit_Class = (BitDefinition%BitCodeHundreds*100)+(BitDefinition%BitCodeTens*10)+BitDefinition%BitCodeOnes
  14. rd = SNGL(Bit_Class)/10.d0
  15. Br_Coef = ( (SNGL(Bit_Class)/10.d0)-(DINT(rd)) )*10.d0
  16. BitClass_name = (Bit_Class)/10
  17. if ( (any(BitClass_name==(/11,12,13,14,21,22,23,24,31,32,33,34,41/))) ) then
  18. open(unit=233,file="Bit_Database.TXT")
  19. READ (233,*)
  20. DO i=1,13!(14-1(/=10))
  21. READ (233,*) name, H1, H2, H3, w_d_max
  22. if ( name==BitClass_name ) then
  23. exit
  24. end if
  25. END DO
  26. close (233)
  27. else
  28. H1=1.50d0
  29. H2=1.0d0
  30. H3=.020d0
  31. w_d_max=10.0d0
  32. end if
  33. !print*, 'H1=' , H1
  34. !print*, 'H2=' , H2
  35. !print*, 'H3=' , H3
  36. !print*, 'w_d_max=' , w_d_max
  37. !print*, 'name=' , name
  38. ! filename = 'Bit_Database.TXT'
  39. !open (UNIT=3, FILE=filename )
  40. !!print*, 'w_d_max1=' , w_d_max
  41. ! !print*, 'name1=' , name
  42. !!openif: if ( status == 0 ) then
  43. ! read (3,*,IOSTAT=status) ! Get next value
  44. ! readloop: do i=1,14
  45. ! read (3,*,IOSTAT=status) name, H1, H2, H3, w_d_max ! Get next value
  46. ! !print*, 'w_d_max=' , w_d_max
  47. ! !print*, 'name=' , name
  48. ! if ( status /= 0 ) exit ! EXIT if not valid.
  49. ! if ( name == bit_Class/10) exit
  50. ! end do readloop
  51. !!endif openif
  52. end subroutine