Simulation Core
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

42 righe
1.3 KiB

  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 testRedisModule
  17. implicit none
  18. character(len=100) :: redis_host,redis_password, sim_id, temp
  19. integer :: redis_port, log_level, stat
  20. ! Variables
  21. ! Body of SimulationCore2
  22. ! print *, 'Hello World'
  23. ! call read_variables()
  24. if(command_argument_count()/=5) then
  25. print *, "Simulator Program must have 5 parameter: redis_host,redisPort,redis_password, sim_id,log_level"
  26. stop
  27. endif
  28. call get_command_argument(1, redis_host)
  29. call get_command_argument(2, temp)
  30. read(temp,*,iostat=stat) redis_port
  31. call get_command_argument(3, redis_password)
  32. call get_command_argument(4, sim_id)
  33. call get_command_argument(5, temp)
  34. read(temp,*,iostat=stat) log_level
  35. call simulate(trim(redis_host),redis_port,trim(redis_password), trim(sim_id),log_level)
  36. end program SimulationCore2