COMSOL Version Number #25
-
Currently, my university can only provide free access to COMSOL v5.3, not v5.5, as is prescribed in the latest installation instructions. Does anyone know if this pipeline still works with COMSOL v5.3 or with other previous version of COMSOL? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 6 replies
-
Hi @zkb17 We just tested our beta task with version COMSOL v5.3 to check. Unfortunately, we learned that we use some new functionality in COMSOL v5.4+ and ASCENT will not work with COMSOL v5.3. Would it be possible for you to have access to v5.4? Specifically, we are getting errors that v5.3 does not have the "ModelParamGroup" class that was introduced in v5.4. |
Beta Was this translation helpful? Give feedback.
-
Did you change your JDK installation? This looks like an error in Runner.py's handoff() method, where a call is made with javac to compile the Java files. To get the error I posted earlier, this would have had to be correct at the time of running the pipeline. On my Windows machine, which it appears you are using as well, the env.json file (in config/system/) looks like the following: { Please check that your "ASCENT_JDK_PATH" is similar. |
Beta Was this translation helpful? Give feedback.
-
I have managed to get the upgrade to v5.5 from COMSOL. I reran the ASCENT pipeline, but I am still getting the same error that I showed earlier. My env.json file is correct, as far as I can tell. It looks the same as yours with my file directories. Do you have any other recommendations to try? I will go slowly back through the installation process and file allocation process described in the "first run" section of the documentation, but I cannot tell what I am doing wrong to get this error. |
Beta Was this translation helpful? Give feedback.
-
Hi @zkb17 Which error, this one? error: Invalid filename: model\*.java To help us look into the issue, which version of Windows are you running? |
Beta Was this translation helpful? Give feedback.
-
Yes, same error as the previous one that I sent an image of. Windows 10 Pro v10.0.19044 |
Beta Was this translation helpful? Give feedback.
-
Hello @ericmusselman I have done some digging into the runner.py handoff() method. So the error arises at the highlighted section in the runner.py script. I have included pictures of the error I am getting as well. I just added in print() commands to diagnose where exactly it was occuring. But in the print() commands, you can also see what I using for my jdk_path, comsol_path, and project_path, which is helpful. Regarding the script in runner.py handoff() method, the issue lies in that first os.system() call. The argument of that method appears to be setting the classpath (-cp) for javac to jre.jar file in the ascent-master/bin directory and also to the comsol plugins, which is fine, I think. and then it tries to run the .java files when it executes model//.java, but it can't find those files it says... well those files aren't in either of the classpaths that we just told javac to look to find the source files, right? The path for the .java files is ../ascent_master/src/model/.java. Now, I am running everything from the ../ascent_master directory, but don't we need to tell javac to also look in the /src/model directory for the *.java files? Because right now we are setting the classpaths (-cp) to paths that don't contain those *.java files. Perhaps I am misunderstanding something, but what are your thoughts? |
Beta Was this translation helpful? Give feedback.
-
Hi @zkb17 Can you please add the following lines just before the "javac" line, and post the traceback here?
Thanks! PS: your error changed from "invalid filename" to "file not found" -- so something changed on your end. |
Beta Was this translation helpful? Give feedback.
-
@dmarshall-bing @ericmusselman First of all, thank you both for getting back to me on this issue and trying to help. You wrote a whole documentation on the pipeline to avoid this, but alas, here I am. I tried the stopgap measure that you suggested, and it still doesn't work. It gives the same error, but instead "javac: file not found: model\*.java" it is now "javac: file not found: IdentifierManager.java". So it can't file that first file listed so it throws an error. I think there is still something amiss with the -cp option. I understand that classpath is different from where the source files are, but in the documentation that you sent me, it states that if the -sourcepath variable is not set, then the compiler with search for the source files in the -classpath variable if it is given. So in this case, I think javac is searching for source files in the two classpaths that we gave it, the jre.jar file and the comsol\plugins folder. Which would mean that there is no .java file to be found in either of those cps, so the error makes sense. ? What do you think about that? Also, please don't feel like you need to continue helping me troubleshoot this. I am going to try and keep at it to see what is up. I think your pipeline is quite powerful and very useful for my project, so I am going to put some time into it. |
Beta Was this translation helpful? Give feedback.
Hi @zkb17
We just tested our beta task with version COMSOL v5.3 to check. Unfortunately, we learned that we use some new functionality in COMSOL v5.4+ and ASCENT will not work with COMSOL v5.3. Would it be possible for you to have access to v5.4?
Specifically, we are getting errors that v5.3 does not have the "ModelParamGroup" class that was introduced in v5.4.