peterpan2014
Programmer
Hi all, I am new to fortran and I just faced the challenging task.
I have two similar programs that I run them separately. The output generated by program#1 has to be used as the input for program#2. I have already figured out the Open/write/read commands so I could make a smooth transition of input/output. However now I am trying to merge both programs into one, so I can run both at once. What I did I pretty much paste program#2 at the end of program#1 (removing end). While they share several same variables, I made sure that the distinct ones should have a different name, same was for the subroutines.
The problems I am facing now is that all the matrices I have allocated a dimension, I can not reallocate new dimension for the new program. I tried to use the function "reallocate" and did not have any success. Well, If y'all have any tips to help me out with it, that would be very much appreciated.
I don't know if I was too clear, otherwise, let me know what questions you might have and I'll try to answer them to the best of my knowledge.
Paulo.
program program#1
...
***
///
end program
program program#2
---
000
...
end program
Merging:
program program12
...
***
///
---
000
...
end program
I have two similar programs that I run them separately. The output generated by program#1 has to be used as the input for program#2. I have already figured out the Open/write/read commands so I could make a smooth transition of input/output. However now I am trying to merge both programs into one, so I can run both at once. What I did I pretty much paste program#2 at the end of program#1 (removing end). While they share several same variables, I made sure that the distinct ones should have a different name, same was for the subroutines.
The problems I am facing now is that all the matrices I have allocated a dimension, I can not reallocate new dimension for the new program. I tried to use the function "reallocate" and did not have any success. Well, If y'all have any tips to help me out with it, that would be very much appreciated.
I don't know if I was too clear, otherwise, let me know what questions you might have and I'll try to answer them to the best of my knowledge.
Paulo.
program program#1
...
***
///
end program
program program#2
---
000
...
end program
Merging:
program program12
...
***
///
---
000
...
end program