Hi Daniel,
Ah, good question.
The environment variables in the Fortran Build > Environment
property page are only set while the project is being built, not
when a binary is being run or debugged.
If you want an environment variable to be set when you launch a
Fortran program, you need to configure it in the Run Configurations
dialog. Specifically...
- Click Run > Run Configurations (or Debug > Debug
Configurations) to open the Run Configurations dialog.
- In the list on the left side of the dialog, choose the
appropriate configuration under the Fortran Local Application
category.
- On the right side of the dialog, select the Environment tab,
and set the environment variable there.
Hope this helps.
Jeff
On 11/7/12 3:05 AM, Daniel Harenberg wrote:
Hi
I am trying to set an environment variable (specifically,
OMP_NUM_THREADS) in Photran. But when I do this in Project
Properties -> Fortran Build -> Environment , it doesn't seem
to work. The program does not read the environment variable. The
same program does when run on the command line. Any hints?
Thanks
Daniel
_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran
|