I don’t know what is going on, but it looks like it may be restricted only to your version of CFE. The output you have listed below does not show any errors of significance. The warnings from the build of isep only affect that program, and it is not very important.
I would concentrate efforts on CFE by going to the build directory for it:
$ cd $CPSEIS_INSTALL_DIR/opencfe/src
(This contains the makefile for your build. )
$ make
(this will rebuild all the java and the fortran-to-java interfaces)
(warnings from Java can be ignored, but any FORTRAN, C, or C++ errors should be examined.)
$ make install
$ cd ../sample_work_files
$ cfe –debug
==
I’ve added this to the google-group for cpseis to get more feedback and ideas from others.
Bill Menger
To rebuild only CFE and to
From: bu...@cpseis.p.re.sourceforge.net <bu...@cpseis.p.re.sourceforge.net> On Behalf Of kerim khemraev
Sent: Friday, October 7, 2022 5:53 AM
To: [cpseis:bugs] <1...@bugs.cpseis.p.re.sourceforge.net>
Subject: [cpseis:bugs] #141 cfe: unable to set Length of traces and DT in JOB_DATA
Thank you for the hints, it seems the problem still not solved.
What I tried:
1) I made cpseis to build java that comes with it.
2) Then I added link to it:
cd $THIRDPARTY_DIR/jdk/platforms
sudo ln -s $THIRDPARTY_DIR/jdk/jdk-6u14-linux-x64_x86_64 $CPSEIS_ARCH
3) Then I prepended bin
dir to the PATH: export PATH="$THIRDPARTY_DIR/jdk/platforms/Linux_x86_64_2.31_gfortran_mpich3/bin":$PATH
Now javac -version
prints javac 1.6.0_14
4) Then I rebuilt cfe:
cd $CPSEIS_INSTALL_DIR/platforms/$CPSEIS_ARCH
make clean;make;make cfe
Still no luck :)
Though one error (highlighted with the red in terminal) during rebuilt I noticed:
-------------------------------------------------------
creating makefile.depend in /home/kerim/cpseis/spws_home/programs/isep
-------------------------------------------------------
cd /home/kerim/cpseis/spws_home/programs/isep; /home/kerim/cpseis/scripts/make_dependencies "g++ -MM -DLINUX -DLINUXI -D_FILE_OFFSET_BITS=64 -DBETALIB -I/home/kerim/cpseis/spws_home/programs/isep -I/home/kerim/cpseis/include -I/home/kerim/cpseis/spws_home/include -I/usr/lib/jvm/java-11-openjdk-amd64/include -I/usr/lib/jvm/java-11-openjdk-amd64/include/linux -I/usr/X11R6/include/X11/SM -I/usr/X11R6/include/X11/ICE -I/usr/X11R6/include/Xm -I/usr/lib/jvm/java-11-openjdk-amd64/include -I/usr/lib/jvm/java-11-openjdk-amd64/include/linux -I/usr/include -I/usr/X11R6/include"
--> Getting List of fortran90 source files...
ls: No match.
--> Getting List of c source files...
ls: No match.
--> Getting List of c++ source files...
ls: No match.
--> building fortran90 dependencies...
--> building XML dependencies...
--> assembling compiler command for building c and c++ dependencies...
--> building c and c++ dependencies...
g++: fatal error: no input files
compilation terminated.
--> finished
--> your dependencies are now in a file called makefile.depend
I tried to run test as you suggested and it worked fine.
Also I could modify my workflow file using text editor and then successfully run it from terminal.
I'm not familiar with fortran but I'm pretty experienced C++ developper and have little knowledge about Java. If you could give me some hints how to inspect Java GUI (how to open it in IDE, in NetBeans for example) probably I could make some efforts a little more.
From fortran I understood that DT and other vars are stored as global. Can't understand how fortran uses Java for GUI. It is very strange for me that in GUI float values are converted to 0000000...
Kerim
[bugs:#141] cfe: unable to set Length of traces and DT in JOB_DATA
Status: open
Group: v1.0 (example)
Created: Wed Oct 05, 2022 05:26 PM UTC by kerim khemraev
Last Updated: Thu Oct 06, 2022 09:04 AM UTC
Owner: nobody
Attachments:
Hi,
I just started using cpseis (looks very promising) and it seems I can't modify Length of traces and DT in JOB_DATA.
Right after I change the focus from one of these fields they become zeros: 000000000.
My real dt is 0.004 second and the number of samples is 1500.
It seems I can set dt to 4 (even though it is displayed as zeros) but I'm unable to set it to 0.004.
I also tried to manually set DT = "4,E-03"
but this doesn't help.
openjdk 11.0.16
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cpseis/bugs/141/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
I rebuilt cfe on Ubuntu 20.04 but am using gcc and g++ version 9.04. When run in debug mode, I see the same messages you do (below in your snippet of a log file), but my display works fine. Something is not correct in how the values from <ModifyField…> are being stored and retransmitted back to the GUI. The way the GUI communicates with the cpseis engine is via messaging. This was written ~1999 when the SOAP protocols were being discussed. We initially built the model to run across slow modems so the GUI would live in the user’s home terminal and the engine would live on the linux cluster/workstation back at the office. So, messaging was the easy way to make this work. The fact that you are getting the message sent from the GUI to the engine
int_debugset_value(3, "ModifyField" , "DT" , "0.004");
and received back from the engine to the GUI
<ModifyFieldkeyword="DT"
windowId="3"
value="0.004"/>
Indicates that the code is running correctly, but somehow the floats are being mangled before displaying back to the GUI.
My only suggestion at this point is to attempt to downgrade gcc/g++ to 9.04 and try rebuilding from the opencfe/src directory again, with a “make; make install”.
Bill
From: bu...@cpseis.p.re.sourceforge.net <bu...@cpseis.p.re.sourceforge.net> On Behalf Of kerim khemraev
Sent: Friday, October 7, 2022 12:11 PM
To: [cpseis:bugs] <1...@bugs.cpseis.p.re.sourceforge.net>
Subject: [cpseis:bugs] #141 cfe: unable to set Length of traces and DT in JOB_DATA
It seems there is no errors during cfe build. And it didn't help.
Launching cfe -debug
I noticed that right after I modify the value in DT (sample interval (seconds))
(JOB_DATA) I can see the output in terminal:
int_debugset_value(3, "EnterWindow" , "JOB_DATA" , " ");
<EnterWindowkeyword="JOB_DATA"
windowId="3"/>
10-07 19:31:52
<Message>
<Reply/>
</Message>
int_debugset_value(3, "ModifyField" , "DT" , "0.004");
<ModifyFieldkeyword="DT"
windowId="3"
value="0.004"/>
10-07 19:31:58
<Message>
<Reply>
<MODIFYFIELDkeyword="DT"
windowId="3"
value="4,E-03"/>
<MODIFYFIELDkeyword="NDPT"
windowId="3"
value="1500"/>
</Reply>
</Message>
but in GUI the field becomes 000000000 and in textual file .wrk
the values are integers: DT = "4,E+00"
By the way it seems this concerns all the GUI input fields accepting float
as the similar behaviour in PROJECT_DATA Easting origin
, X Grid distance
etc.
I just remembered that I also have gcc-11
and gcc-12
compilers in /home/kerim/gcc/11
and /home/kerim/gcc/12
accordingly.
And in .bashrc
I also have:
export CC=/home/kerim/gcc/11/bin/gcc
export CXX=/home/kerim/gcc/11/bin/g++
export LD_LIBRARY_PATH=/home/kerim/gcc/11/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/kerim/gcc/12/lib64:$LD_LIBRARY_PATH
I will try to rebuild cpseis with these four lines commented.
[bugs:#141] cfe: unable to set Length of traces and DT in JOB_DATA
Status: open
Group: v1.0 (example)
Created: Wed Oct 05, 2022 05:26 PM UTC by kerim khemraev
Last Updated: Fri Oct 07, 2022 10:53 AM UTC
Owner: nobody
Attachments: