00001 subroutine open_directory(ia,ib)
00002 use phys_constant, only : long
00003 use def_quantities
00004 implicit none
00005 integer :: ia, ib
00006 character(40) :: char1, char2, char3, char4, char5
00007 character(100) :: dircommand
00008
00009 write(char1, '(i5)') ia
00010 char2 = adjustl(char1)
00011 if (ia < 10) then
00012 char5 = 'sol_0' // trim(char2)
00013 else
00014 char5 = 'sol_' // trim(char2)
00015 endif
00016
00017 dircommand = 'mkdir ' // char5
00018 call system(dircommand)
00019
00020
00021
00022
00023 call chdir(char5)
00024
00025
00026
00027
00028 end subroutine open_directory