Search Results

Search: Posts Made By: butson
3,429
Posted By butson
Thank you guys so much for all the help. I think...
Thank you guys so much for all the help. I think I will spend my winter break learning how to use awk properly. Maybe I will try to learn FORTRAN as well. I know it would help with this kind of...
3,429
Posted By butson
Oh okay. I get it now. {print "x += "$5" ^ "2}...
Oh okay. I get it now.
{print "x += "$5" ^ "2}
will basically write $5^2 + $5^2.... and so on, where each $5 is from a different line that meets the criteria. Awk is not actually doing the...
3,429
Posted By butson
They are pretty small numbers so you're right,...
They are pretty small numbers so you're right, double precision won't be enough. I didn't put the actual input on here becuase it is quite wide and I wasn't sure it would fit, but here are the first...
3,429
Posted By butson
Yes, Don, I apologize. The script is called...
Yes, Don, I apologize. The script is called "integrate" and the file I am searching through is called "density.mesh_index" this is how the command looks:
./integrate density.mesh_index 3 1008163
I...
3,429
Posted By butson
Streamline script to search for numbers in a certain range
Hello all,

I need help making a script run faster since I have a huge file to sift through. The file I am running my script on looks like this:
1 -1.9E+001 -1.8E-001 1.5E+001 3.32E+001
2 ...
2,984
Posted By butson
Yes there are 6 leading spaces! Thanks very much!...
Yes there are 6 leading spaces! Thanks very much! I will see if it works. Sorry for the late reply, it's been a hectic month for me.
2,984
Posted By butson
Thanks Don that helps a lot. So for the x_2 the...
Thanks Don that helps a lot. So for the x_2 the format is (label(j), minimum j, max j) correct?

LMH that is also very helpful. I am using gfortran to compile. I will look into using this for...
2,984
Posted By butson
FORTRAN read statement
Hi,
I've been having trouble figuring out what the following read statement is doing.
DO I = 1, natom
k = 3 * (i - 1) + 1
READ(8,*) AtNum(I), (X_2(J),J=k,k+2)
END...
1,483
Posted By butson
That is the thing, I need to understand the...
That is the thing, I need to understand the programming language to find the problem. I realize it may not be the program, but I can't know that if I don't know what the program is telling the...
4,582
Posted By butson
I thought it was just the makefile that was...
I thought it was just the makefile that was needed, which should be in my last post (let me know if it is not). Let me know what else should be posted and I will post it. Sorry about that.
1,483
Posted By butson
Okay thanks! that actually seem very straight...
Okay thanks! that actually seem very straight forward. But the real problem I'm having is within the files that make up the executable. Do you know of a website that can help me understand the...
4,518
Posted By butson
Thank you for the information. You are very...
Thank you for the information. You are very helpful. I will give this a try. Someone told me about waitpid and so I gave that a try, but I found out that the process is not a child process. I didn't...
1,483
Posted By butson
How to write files for compiling a program.?
I am hoping someone can give me a good free web resource for writing code to compile a binary executable. I am getting fairly decent at writing shell script, are the .f files just shell scripts?...
4,582
Posted By butson
Sorry for the delay. I got it to work by copying...
Sorry for the delay. I got it to work by copying someone elses files, but I would still like to know what was wrong. This is the new makefile that works, I will dig around and see if I kept the old...
4,582
Posted By butson
Well it is the other files in the same dir as the...
Well it is the other files in the same dir as the makefile that I think are the problem. It will say things like:MainProgram.f: undefined reference: ""
4,582
Posted By butson
I get the same as you.
I get the same as you.
4,582
Posted By butson
Using gFORTRAN to compile something built for g77
Hi, I am having a problem compiling a program with gfortran. The program compiles with g77 and f77 but I don't have those. I edited the makefile from FC = g77 to FC = gfortran but when I run it I get...
4,518
Posted By butson
I apoligize. As I said I am very new to this. I...
I apoligize. As I said I am very new to this. I didn't know it was different for different shells, but I will be sure to include that information next time.
I wanted to let you all know that I got...
4,518
Posted By butson
Okay thanks! I'll give it a try. It is the C...
Okay thanks! I'll give it a try.

It is the C shell. The script I am editing has /bin/csh -f.
4,518
Posted By butson
Thanks for the reply! Again, I'm very new to this...
Thanks for the reply! Again, I'm very new to this so I apologize, but I don't understand some of the code. In if [ -f file1 -a -f file2 -a -f file3 ] what does the -f and -a mean? Also is the "1"...
4,518
Posted By butson
How to get script to wait until status is true before continuing?
I'm extremely new to shell scripting so I apologize for the crudeness of my descriptions. I am editing a script that will write files (e.g. Job0_A.com, Job1_A.com, etc.) and then run them through a...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 03:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy