From b7b132812315182ec3062abc83fa872c711abbec 2023-06-02 20:35:11 From: Roberto Flores Date: 2023-06-02 20:35:11 Subject: [PATCH] setup.py update --- diff --git a/schainf/Ffiles/get_path_1_reader.f b/schainf/Ffiles/get_path_1_reader.f new file mode 100644 index 0000000..795a2e3 --- /dev/null +++ b/schainf/Ffiles/get_path_1_reader.f @@ -0,0 +1,11 @@ + + subroutine get_len(the_len,fqual_temp) +c +c create table of magnetic field components +c +c character*47 L + + character(1024) :: fqual_temp + character(512) :: ppath + character(512) :: cpath + integer the_len diff --git a/schainf/Ffiles/get_path_2_reader.f b/schainf/Ffiles/get_path_2_reader.f new file mode 100644 index 0000000..fa1fb7d --- /dev/null +++ b/schainf/Ffiles/get_path_2_reader.f @@ -0,0 +1,24 @@ + + fqual_temp = TRIM(ppath)//TRIM(cpath) + the_len = LEN_TRIM(fqual_temp) + + return + end + + subroutine get_path(fqual,the_len) +c +c create table of magnetic field components +c +c character*47 L + + integer the_len + character(the_len) :: fqual + character(1024) :: fqual_temp + + call get_len(the_len,fqual_temp) + fqual = TRIM(fqual_temp) + write(*,*) "Done" + + return + end + diff --git a/setup.py b/setup.py index a65dec2..8b895af 100644 --- a/setup.py +++ b/setup.py @@ -89,14 +89,20 @@ setup( main_path = os.getcwd() child_path = '/schainf/Ffiles/bfmodel/' +child_path_r = '/schainf/Ffiles/jlib26feb2001' #print("main_path: ", main_path) my_str = ' '+"ppath = "+"\""+main_path+"\"\n" my_str_2 = ' '+"cpath = "+"\""+child_path+"\"" +my_str_2_r = ' '+"cpath = "+"\""+child_path_r+"\"" #''' with open('./schainf/Ffiles/get_path_1.f', 'r') as path1: data1 = path1.read() with open('./schainf/Ffiles/get_path_2.f', 'r') as path2: data2 = path2.read() with open('./schainf/Ffiles/get_path.f', 'w') as final: final.write(data1+my_str+my_str_2+data2) + +with open('./schainf/Ffiles/get_path_1_reader.f', 'r') as p1: data1_r = p1.read() +with open('./schainf/Ffiles/get_path_2_reader.f', 'r') as p2: data2_r = p2.read() +with open('./schainf/Ffiles/get_path_reader.f', 'w') as final_r: final_r.write(data1_r+my_str+my_str_2_r+data2_r) #''' from numpy.distutils.core import Extension, setup