[SOLVED]warning: Fortran 2018 deleted feature:

raman kumar

Member
Joined
Aug 3, 2020
Messages
261
Reaction score
15
Credits
2,567
sir i was installing LAXPC sotware and during configuration in terminal it says

raman@kali:~/LAXPCsoftware$ ./Configure
find_resp.f:245:72:

245 | 3000 XD(K)=(XD(K+1)-XD(K))/(XN(J)-XN(K))
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 3000 at (1)
find_back_flux.f:133:72:

133 | DO 2000 J=LY,LY+K-1
| 1
Warning: Fortran 2018 deleted feature: Shared DO termination label 2000 at (1)
find_back_flux.f:137:72:

137 | DO 2000 J=LY,LY+K-1
| 1
Warning: Fortran 2018 deleted feature: Shared DO termination label 2000 at (1)
raman@kali:~/LAXPCsoftware$
 

Attachments

  • Screenshot from 2021-02-11 16-56-50.png
    Screenshot from 2021-02-11 16-56-50.png
    88.8 KB · Views: 704


Warnings are not a bad thing just a message that a feature used in the code was deleted or something else that doesn't effect the compiling of the code. If there was a problem during the configure step it would come with an error and configuring would stop which it didn't seem to from your output.
 
raman@kali:~$ cd myresults
raman@kali:~/myresults$ export LAXPCDATAPATH=/home/raman/Downloads/20160107_G02_010T01_9000000252_level1
raman@kali:~/myresults$ laxpc_make_filelist
ls: cannot access '/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/*/*/modeEA/*.fits': No such file or directory
ls: cannot access '/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/*/*mkf': No such file or directory
raman@kali:~/myresults$ laxpc_make_event eventfiles
File containing names of level 1 files: eventfiles

Output Event file name: level2.event.fits
No of file for laxpc 10,20,30 : 0 0 0
writing fits file

Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.

Backtrace for this error:
#0 0x7f867d6debd0 in ???
#1 0x7f867d6dde25 in ???
#2 0x7f867d3f27ff in ???
#3 0x5576749635a3 in ???
#4 0x557674964e27 in ???
#5 0x557674964fa3 in ???
#6 0x7f867d3dde0a in ???
#7 0x55767495ac49 in ???
#8 0xffffffffffffffff in ???
Floating point exception
raman@kali:~/myresults$ laxpc_make_stdgti filterfiles
Filter file List being used: filterfiles
raman@kali:~/myresults$ laxpc_make_backlightcurve -p
At line 638 of file make_backlight.f
Fortran runtime error: End of file

Error termination. Backtrace:
#0 0x7faeb0562bd0 in ???
#1 0x7faeb0563685 in ???
#2 0x7faeb056425b in ???
#3 0x7faeb0798673 in ???
#4 0x7faeb0791da2 in ???
#5 0x7faeb0792cd1 in ???
#6 0x556b2e221f91 in ???
#7 0x556b2e222ae6 in ???
#8 0x556b2e22738f in ???
#9 0x7faeb0261e0a in ???
#10 0x556b2e21ebe9 in ???
#11 0xffffffffffffffff in ???
raman@kali:~/myresults$
 
Can you give me a download link to the software?
 
I meant what's the original download source where I can download myself?
 
According to the README for the LAXPCDATAPATH variable it should be:
export LAXPCDATAPATH=/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc
 
raman@kali:~/LAXPCsoftware$ heainit
raman@kali:~/LAXPCsoftware$ cd myresults
bash: cd: myresults: No such file or directory
raman@kali:~/LAXPCsoftware$ cd
raman@kali:~$ cd myresults
raman@kali:~/myresults$ heainit
raman@kali:~/myresults$ export LAXPCDATAPATH=/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc/
raman@kali:~/myresults$ laxpc_make_filelist
raman@kali:~/myresults$ laxpc_make_event eventfiles
File containing names of level 1 files: eventfiles

Output Event file name: level2.event.fits
No of file for laxpc 10,20,30 : 1 1 1
Using level 1 event file:
/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc//01509/lxp1/modeEA/AS1G02_010T01_9000000252lxp1EA_level1.fits

no of events read = 348
Using level 1 event file:
/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc//01509/lxp2/modeEA/AS1G02_010T01_9000000252lxp2EA_level1.fits

no of events read = 692
Using level 1 event file:
/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc//01509/lxp3/modeEA/AS1G02_010T01_9000000252lxp3EA_level1.fits

no of events read = 1036
Obtained energy information for laxpc 10 using /home/raman/LAXPCsoftware//LAXPC_CAL/response/lx10/lx10cshm01v1.0.rmf

Obtained energy information for laxpc 20 using /home/raman/LAXPCsoftware//LAXPC_CAL/response/lx20/lx20cshm01v1.0.rmf

Cannot find respfile: /home/raman/LAXPCsoftware//LAXPC_CAL/response/lx30/lx30cshm00v1.0.rmf
No energy information for LAXPC 30
writing fits file
writing response file names
raman@kali:~/myresults$ laxpc_make_stdgti filterfiles
Filter file List being used: filterfiles
425.26839882135391 1792.2952660322189
4097.3734427690506 4614.6912076175213
6694.6532211303711 7636.6545750796795
raman@kali:~/myresults$ laxpc_make_lightcurve
USAGE: Fits_Lightcurve [-p (which pcu? all or e.g. 12)] [-t timebin] [-u (user gti asci file)] [-o output filename] -e [energy define file] -l [layer no] event_file_name
Event file being used: level2.event.fits
User Time bin in seconds: 1.0000000000000000
PCUs being used: all
Output file name: lightcurve
User GTI file name: none
Energy input filename: eneinput
extracting from all layers
start time integer stop time
No. of energy bins 1
total no of points in lC= 1
0.0000000000000000 0.0000000000000000
No. of segments: 1 1
raman@kali:~/myresults$ laxpc_make_lightcurve-p
bash: laxpc_make_lightcurve-p: command not found
raman@kali:~/LAXPCsoftware$ heainit
raman@kali:~/LAXPCsoftware$ cd myresults
bash: cd: myresults: No such file or directory
raman@kali:~/LAXPCsoftware$ cd
raman@kali:~$ cd myresults
raman@kali:~/myresults$ heainit
raman@kali:~/myresults$ export LAXPCDATAPATH=/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc/
raman@kali:~/myresults$ laxpc_make_filelist
raman@kali:~/myresults$ laxpc_make_event eventfiles
File containing names of level 1 files: eventfiles

Output Event file name: level2.event.fits
No of file for laxpc 10,20,30 : 1 1 1
Using level 1 event file:
/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc//01509/lxp1/modeEA/AS1G02_010T01_9000000252lxp1EA_level1.fits

no of events read = 348
Using level 1 event file:
/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc//01509/lxp2/modeEA/AS1G02_010T01_9000000252lxp2EA_level1.fits

no of events read = 692
Using level 1 event file:
/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc//01509/lxp3/modeEA/AS1G02_010T01_9000000252lxp3EA_level1.fits

no of events read = 1036
Obtained energy information for laxpc 10 using /home/raman/LAXPCsoftware//LAXPC_CAL/response/lx10/lx10cshm01v1.0.rmf

Obtained energy information for laxpc 20 using /home/raman/LAXPCsoftware//LAXPC_CAL/response/lx20/lx20cshm01v1.0.rmf

Cannot find respfile: /home/raman/LAXPCsoftware//LAXPC_CAL/response/lx30/lx30cshm00v1.0.rmf
No energy information for LAXPC 30
writing fits file
writing response file names
raman@kali:~/myresults$ laxpc_make_stdgti filterfiles
Filter file List being used: filterfiles
425.26839882135391 1792.2952660322189
4097.3734427690506 4614.6912076175213
6694.6532211303711 7636.6545750796795
raman@kali:~/myresults$ laxpc_make_lightcurve
USAGE: Fits_Lightcurve [-p (which pcu? all or e.g. 12)] [-t timebin] [-u (user gti asci file)] [-o output filename] -e [energy define file] -l [layer no] event_file_name
Event file being used: level2.event.fits
User Time bin in seconds: 1.0000000000000000
PCUs being used: all
Output file name: lightcurve
User GTI file name: none
Energy input filename: eneinput
extracting from all layers
start time integer stop time
No. of energy bins 1
total no of points in lC= 1
0.0000000000000000 0.0000000000000000
No. of segments: 1 1
raman@kali:~/myresults$ laxpc_make_lightcurve-p
bash: laxpc_make_lightcurve-p: command not found
 
Half of it doesn't mean anything to me because it's scientific software, I just read the documentation and try it out as I go. Because scientific computing not being my area of expertise it would take me a long time to figure it out and I don't feel like spending that amount of time on this, so you can either do the trial and error method like I do and learn something yourself or you can contact the creator of the software to help you out: http://astrosat-ssc.iucaa.in/?q=contact
 
are Quotation mark must in export LAXPCDATAPATH=/home/raman/Downloads/20160107_G02_010T01_9000000252_level1/laxpc
 
What are you using to compile the FORTRAN source code?? Is it gcc’s gfortran?
Whatever it is, it looks like it’s compiling the code as Fortran2018 by default.
As @f33dm3bits has said, those messages you’re getting are only warnings.

But to side-step these issues, you might need to take a look at the make-files, or whatever build system it’s using and in the compiler invocation, add the -std option to specify which version of the fortran standard to use when compiling.
E.g.
-std=f2008 will tell gfortran to compile the code as fortran 2008.

The standards available are listed at the bottom of this page:
 

Members online


Latest posts

Top