Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SimulationCore2.f90 1.4 KiB

1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
1 vuosi sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ! SimulationCore2.f90
  2. !
  3. ! FUNCTIONS:
  4. ! SimulationCore2 - Entry point of console application.
  5. !
  6. !****************************************************************************
  7. !
  8. ! PROGRAM: SimulationCore2
  9. !
  10. ! PURPOSE: Entry point for the console application.
  11. !
  12. !****************************************************************************
  13. program SimulationCore2
  14. use Simulator
  15. use RedisInterface
  16. use logging
  17. !use testRedisModule
  18. implicit none
  19. character(len=100) :: redis_host,redis_password, sim_id, temp
  20. integer :: redis_port, status,stepTime, print_freq
  21. ! Variables
  22. ! Body of SimulationCore2
  23. ! print *, 'Hello World'
  24. ! call read_variables()
  25. if(command_argument_count()/=7) then
  26. print *, "Simulator Program must have 7 parameter: redis_host,redisPort,redis_password, sim_id,log_level, print_freq"
  27. stop
  28. endif
  29. call get_command_argument(1, redis_host)
  30. call get_command_argument(2, temp)
  31. read(temp,*,iostat=status) redis_port
  32. call get_command_argument(3, redis_password)
  33. call get_command_argument(4, sim_id)
  34. call get_command_argument(5, temp)
  35. read(temp,*,iostat=status) log_level
  36. call get_command_argument(6, temp)
  37. read(temp,*,iostat=status) stepTime
  38. call get_command_argument(7, temp)
  39. read(temp,*,iostat=status) print_freq
  40. call simulate(trim(redis_host),redis_port,trim(redis_password), trim(sim_id),stepTime,print_freq)
  41. end program SimulationCore2