forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Directory Mix

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
EKruck



Joined: 09 Jan 2010
Posts: 224
Location: Aalen, Germany

PostPosted: Thu Jan 12, 2017 3:31 pm    Post subject: Directory Mix Reply with quote

To compile about 400 Fortran files of a project in 40 different subdirectories I have created a batch file say in directroy MAIN.

This batch file runs in directory MAIN and starts all compilations with e.g.:
Quote:
:
CALL COMP64 LibF\cpuTime.f90
:

COMP64 is a bacht file containing
Quote:
ftn95 %1 /64 /debug /no_banner

This construct allows to change compile options for all files at once.
All OBJ files will be created - as expected - in the correct subdirectories e.g. LibF. However, all MOD files will be created in directory MAIN.

How can I make sure to have as well the MOD files in their correct positions in the subdirectories? Any idea?
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Thu Jan 12, 2017 6:12 pm    Post subject: Reply with quote

You might consider using the command line option /MOD_PATH to direct the compiler to look in MAIN for mod files.

You can also set MOD_PATH as an environment variable.
Back to top
View user's profile Send private message AIM Address
EKruck



Joined: 09 Jan 2010
Posts: 224
Location: Aalen, Germany

PostPosted: Fri Jan 13, 2017 9:13 am    Post subject: Reply with quote

The environment variable MOD_PATH is (probably) defined during FTN95 installation as
Quote:
mod_path=C:\Program Files (x86)\Silverfrost\FTN95\include
my file ftn95.cfg contains
Quote:
/mod_path ..\Moduls
to point to my global moduls. ?
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Jan 13, 2017 10:20 am    Post subject: Reply with quote

I guess the environment MOD_PATH could be a list so you could add to an existing MOD_PATH using semi-colon separators.

If you have created an ftn95.cfg then it can be modified.
You can even have an extra ftn95.cfg in a local folder as well as the FTN95 folder. Both will be called upon.

You can use /MOD_PATH more than once on a command line.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group