I am trying to figure out how to represent missing values in an array with a value I know won't be in there for example -99.9.(adsbygoogle = window.adsbygoogle || []).push({});

A sample of my code, is below. The array "pro" has been read in from a data file of numeric values. I need the do loop range to stay fixed because other parts of the array that I will be working with fill the range, but this specific part does not.

I have tried setting the array equal to -99.9 before the loop but all that prints is "*****".Code (Text):

DO i=1,31

PRINT *, pro(1,3,i)

END DO

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Fortran missing values

Loading...

Similar Threads for Fortran missing values |
---|

Fortran Successive Over Relaxation Method in FORTRAN |

If statement for Monte Carlo integration |

C/++/# How to use C++ in studying calculus |

Fortran How to buy Fortran Programming Software Commersial License |

Fortran Fortran for Computational Fluid Dynamics Problems |

**Physics Forums | Science Articles, Homework Help, Discussion**