Simulation Core
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

SimulationCore2.i90 1.4 KiB

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