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.i90 1.3 KiB

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