Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Filename contains temporary path?

Please login with a confirmed email address before reporting spam

Dear all,

recently I upgradet to version 4.2.
Using the same, completely unchanged Matlab scripts to run my models, that were running fine in version 4.1 causes a small problem.

I set the model path with: model.modelPath() and will try if using ModelUtil.path(path) will make a difference.
Anyways, I run the Comsol model from a local linux machine but the script connects to a remote Windows server.
When the model is done, some export files are written to the local linux machine like this for example:
model.result.export('data3').set('filename', ['v2_transient_param', num2str(p*sweep_step), '.dat']);

This used to work fine!
Files had the correct name and were stored at the correct location using version 4.1.
However, using v 4.2 the filenames contain a strange temporary path of the Windows Comsol server machine:

The file has this NAME, its not a path, its the filename itself:
"C:\Users\modeler\AppData\Local\Temp\cs09359\v2_transient_param0.83333.dat"

So the Windows path is part of the filename on the linux machine. At least the file is stored in the right directory.
But the strange path string in the beginning of the file name is confusing and makes automated postprocessing very difficult..

Did anyone experience the same and found a solution to it?


Thanks a lot and best regards,
Juergen


0 Replies Last Post 20 juil. 2011, 11:22 UTC−4
COMSOL Moderator

Hello Juergen Hansmann

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.