- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						Is there any refactoringcapability or toolsfor the Visual Studio 2008/2010 environment and the Intel Fortran compiler, similar to the Eclipse/Photran refactoring environment? Sadly, Photran appears toonly refactor free-form code, and doesn't work with the Intel Fortran Compiler for Windows, and of course, it barfs onour STRUCTURE/RECORD syntax..
I'm specifically looking to:
1)refactor Digital/Compaq/HP-extension fixed-form source to free-form source (change comment inducer to '!',update line continuation style, etc.)
2) refactor implicit variable declaration to explicit variable declaration and add 'implicit none'
3) refactor variable names across projects (for example,an INCLUDEd variable used by many projects)
4) refactor global variables by encapsulation into struct/recordor TYPEdstructures to remove them from the global namespace(example integer a,b; a= 5; b=10=> type dual_int; integer a,b; end type; type(dual_int) c; c%a = 5; c%b = 10)
5) refactor deprecated syntax (equivalence, goto 10,20,30 x, etc..)
This would be a great aid to porting older Fortran IV, Fortran-66, and Fortran-77 code up to Fortran-90/95 and beyond.
					
				
			
			
				
			
			
			
			
			
			
			
		
		
		
	
	
	
I'm specifically looking to:
1)refactor Digital/Compaq/HP-extension fixed-form source to free-form source (change comment inducer to '!',update line continuation style, etc.)
2) refactor implicit variable declaration to explicit variable declaration and add 'implicit none'
3) refactor variable names across projects (for example,an INCLUDEd variable used by many projects)
4) refactor global variables by encapsulation into struct/recordor TYPEdstructures to remove them from the global namespace(example integer a,b; a= 5; b=10=> type dual_int; integer a,b; end type; type(dual_int) c; c%a = 5; c%b = 10)
5) refactor deprecated syntax (equivalence, goto 10,20,30 x, etc..)
This would be a great aid to porting older Fortran IV, Fortran-66, and Fortran-77 code up to Fortran-90/95 and beyond.
Link Copied
		5 Replies
	
		
		
			
			
			
					
	
			- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						There are several popular open source fixed to free form translators. If you're tied to some non-standard format or syntax, you'd probably need to adapt one of those yourself. I don't think anyone was successful trying to make a business out of more ambitious specifications.
					
				
			
			
				
			
			
			
			
			
			
			
		
		
		
	
	
	
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						in addition to the freebies out there, you might also check out 
http://www.cobalt-blue.com/
i used it many years ago to clean up old spagetti code.
It also cleans up f90, etc code
					
				
			
			
				
			
			
			
			
			
			
			
		
		
		
	
	
	
http://www.cobalt-blue.com/
i used it many years ago to clean up old spagetti code.
It also cleans up f90, etc code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						Another package for reformatting and converting old Fortran code is "PlusFort with Spag" from
www. polyhedron.co.uk (not freeware).
		
		
	
	
	
www. polyhedron.co.uk (not freeware).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						Yes, PlusFort has a good reputation among the commercial alternatives in this arena. I tried Cobalt Blue in its early days (don't know if it's improved since then).
					
				
			
			
				
			
			
			
			
			
			
			
		
		
		
	
	
	
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
			
				
					
					
						oops! i had forgot about plusfort. used that also and more recently. highly recommended.
					
				
			
			
				
			
			
			
			
			
			
			
		
		
		
	
	
	
 
					
				
				
			
		
					
					Reply
					
						
	
		
				
				
				
					
						
					
				
					
				
				
				
				
			
			Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
 
					
				
		
