Recent content by jf22901
-
J
Atmospheric eddies, waves etc: definitions
Hi all. I'm reading up on types of atmospheric motion, and when discussing the meridional transport of various properties, the motion is generally split into three components: 1. Mean meridional circulation 2. Transient eddies 3. Stationary waves However, depending on what book...- jf22901
- Thread
- Atmospheric Definitions Waves
- Replies: 3
- Forum: Earth Sciences
-
J
Fortran What is the purpose of the Fortran 77 DECK statement?
Thanks jtbell, that's brilliant! It's an old UK Met. Office model I'm using (to model Mars' atmosphere), and I guess it was developed partly at Reading. How did you stumble on that website? I tried loads of search combinations and still found nothing!- jf22901
- Post #5
- Forum: Programming and Computer Science
-
J
Fortran What is the purpose of the Fortran 77 DECK statement?
Thanks Mark. Good to know it wasn't just my useless web searching skills! :smile: The code all compiles ok, so it's not as if they are causing a problem - I was just wondering what they were there for. After a further look, the DECK statements only appear in subroutines that call...- jf22901
- Post #3
- Forum: Programming and Computer Science
-
J
Fortran What is the purpose of the Fortran 77 DECK statement?
Hi all. I am using some Fortran 77 code that was originally written in the early 90s, and some of the subroutines start with DECK or *DECK. I have tried searching the internet but cannot find anything relevant. As an example, say the main program calls two subroutines SUBONE and SUBTWO. One...- jf22901
- Thread
- Fortran
- Replies: 6
- Forum: Programming and Computer Science
-
J
Fortran Fortran 77 - reading same file multiple times
Aha! Problem solved. Originally the data were written to the unformatted files with two write statements; one for the header information and one for the data. Thus, when Fortran came to read the data, the two read statements worked. When I created my datafile, I just wrote the header and data...- jf22901
- Post #2
- Forum: Programming and Computer Science
-
J
Fortran Fortran 77 - reading same file multiple times
Hi all I am using some code that was originally written in F77, but as it is many thousands of lines long, I haven't the time to go changing it. There is one section of code that refuses to work, but I'm assuming it must have at some point since the code has been used in the past...- jf22901
- Thread
- File Fortran Multiple Reading
- Replies: 1
- Forum: Programming and Computer Science
-
J
Fortran What is the purpose of #ifndef statements in Fortran code?
Thanks for the help everyone. I've just checked the makefile and it does indeed have a compiler flag with '-Dglobal'. I'd never noticed that before! I'll go and check out all this preprocessor stuff in more detail. I don't know what I'd do without the helpful folks here at PF! :smile:- jf22901
- Post #5
- Forum: Programming and Computer Science
-
J
Fortran What is the purpose of #ifndef statements in Fortran code?
Hi all I'm using Fortran code written by someone else, and a lot of the files have #ifndef statements in them. For example: #ifndef global REAL array(2500) #endif I've tried searching online, but can't find anything useful that actually explains what this bit of code does...- jf22901
- Thread
- Fortran
- Replies: 4
- Forum: Programming and Computer Science
-
J
Fortran What could be causing a dynamic space array error in a Fortran 77 program?
It's a model that's been developed over the years, so there is some Fortran 77, and some 90. The code where the dynamic arrays are is definitely written in the syntax of Fortran 77. The compiler is ifort (which seems to allow non-standard extensions), but I know that whenever I've tried to use...- jf22901
- Post #5
- Forum: Programming and Computer Science
-
J
Fortran What could be causing a dynamic space array error in a Fortran 77 program?
After doing a bit more work it seems that one of the arrays is defined to have 25 million elements, hence the reason my computer hasn't enough memory! Ah well, problem sorted I guess. :rolleyes:- jf22901
- Post #2
- Forum: Programming and Computer Science
-
J
Fortran What could be causing a dynamic space array error in a Fortran 77 program?
Hi all I am trying to run an executable compiled from some Fortran files (not my own), which look like they are written in Fortran 77. One of these includes some dynamic space arrays, where the number of elements depends on an integer value passed to the subroutine, e.g. subroutine...- jf22901
- Thread
- Arrays Dynamic Fortran Space
- Replies: 5
- Forum: Programming and Computer Science
-
J
Replacing specific array elements in IDL
Problem solved. I've realized I can simply type A[0:9]=5.0 etc. :biggrin:- jf22901
- Post #2
- Forum: Programming and Computer Science
-
J
What is the $@ symbol for in a makefile?
Brilliant, thanks a lot. If only I'd found that manual sooner!- jf22901
- Post #3
- Forum: Programming and Computer Science
-
J
Replacing specific array elements in IDL
Replacing specific array elements in IDL - solved! Hi I was just wondering if there was any way, other than using FOR loops, to replace specified elements of an array? For example, say A is a 1D array of 50 elements, each equal to 1.0. Is it possible to change say elements 0-9 and 30-49...- jf22901
- Thread
- Array Elements Specific
- Replies: 1
- Forum: Programming and Computer Science
-
J
What is the $@ symbol for in a makefile?
Hi. Can anyone please tell me what purpose $@ serves in the dependency line below? I've tried looking online, and in the make and ifort documentation, but can't find anything. :confused: $(EXECUTABLE) : $(OBJECTS) ifort $(LOADFLAGS) -o $@ $(OBJECTS) $(LIBRARIES)...- jf22901
- Thread
- Symbol
- Replies: 2
- Forum: Programming and Computer Science