Creating new studies in a folder with the same name

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
User avatar
jcharris
Posts: 48
Joined: Tue Apr 16, 2019 7:28 pm

Creating new studies in a folder with the same name

Post by jcharris »

It seems that one cannot explicitly create a new study if the study name is identical to the name of the current folder. Are there any plans for this to change, or is this behavior documented somewhere?

(Or could at least a warning be printed? -- it does not seem ideal from the user experience side if creating new studies magically works or does not work depending on the name given.)

Best,
Jeff

(Apologies if this is in the wrong section -- the two "Code_Saturne usage forum guidelines" links <viewtopic.php?f=2&t=7> are both broken...)
Yvan Fournier
Posts: 4100
Joined: Mon Feb 20, 2012 3:25 pm

Re: Creating new studies in a folder with the same name

Post by Yvan Fournier »

Hello,

I was not aware of this behavior. That would seem to be a bug. I'll check.

Best regards,

Yvan
User avatar
jcharris
Posts: 48
Joined: Tue Apr 16, 2019 7:28 pm

Re: Creating new studies in a folder with the same name

Post by jcharris »

It appears to be defined in the first line of the create() function of class Study of bin/cs_create.py

I presume that it is to assume that the user just wants to create a new case in an existing study, but in my case, the assumption was wrong ;)
Yvan Fournier
Posts: 4100
Joined: Mon Feb 20, 2012 3:25 pm

Re: Creating new studies in a folder with the same name

Post by Yvan Fournier »

Hello,

I fixed this today on the "master" branch. I'll wait to see we have no side-effects before merging to other branches.

Best regards,

Yvan
Post Reply