Multi transfer problem. Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Multi transfer problem. « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Jae Lee (dream627)
New member
Username: dream627

Post Number: 1
Registered: 11-2009
Posted on Friday, November 06, 2009 - 05:13 pm:   

Dir Sir.

I have a problem for multiple transfer depends on stage.

I'm using FlexPDE 5.

I have several transfered data.
(transfer_1.dat,transfer_2.dat...transfer_#.dat)
According to the stage number #, I want to import transfer_#.dat


I checked this link (http://www.pdesolutions.com/discus/messages/4/1570.html?1144189727)

definitions
alpha = table('transfer'+$stage+'.dat')

However, only transfer_1.dat is imported for all stage.

Please help me.

Thank you very much.

Best Regards.

Jae Woo. LEE
Top of pagePrevious messageNext messageBottom of page Link to this message

Marek Nelson (mgnelson)
Moderator
Username: mgnelson

Post Number: 154
Registered: 07-2007
Posted on Friday, November 06, 2009 - 06:04 pm:   

If you transferred out to the file "name.txt" (generating "name_1.txt", "name_2.txt" etc) and you want to read the staged files back into a staged problem, you should be able to construct a text string of the appropriate name with the following :

"name_" + $stage + ".txt"

I have attached a modification of our staged geometry example script where I do this. If you still have trouble, post a copy of your script that is malfunctioning.

application/octet-stream
staged_geometry_out.pde (0.5 k)

application/octet-stream
staged_geometry_in.pde (0.5 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Jae Lee (dream627)
New member
Username: dream627

Post Number: 2
Registered: 11-2009
Posted on Friday, November 06, 2009 - 06:38 pm:   

Dear Sir.

Thanks for rapid answer.

I check your file and it works well.

I modify my file but still same problem when I use transfer("transfer_"+$stage+".txt",p)

I made 4 trasfer_#.txt files

and I import using testimport.pde.

In my test program p should be changed.

If I use {Transfermesh('transfer_1.txt',p)}
or {Transfermesh('transfer_4.txt',p)}, it works well.
But I need staged.

I attach the files.

Thank you very much.

Best Regards.

Jae Woo. LEE
application/x-zip-compressed
transfer.zip (445.4 k)
Top of pagePrevious messageNext messageBottom of page Link to this message

Marek Nelson (mgnelson)
Moderator
Username: mgnelson

Post Number: 155
Registered: 07-2007
Posted on Friday, November 06, 2009 - 07:06 pm:   

I think that the problem is the transfer out, because all four of the tranfer files in your zip have the same data. So P does not change because the transfer files are the same.
Top of pagePrevious messageNext messageBottom of page Link to this message

Jae Lee (dream627)
Junior Member
Username: dream627

Post Number: 3
Registered: 11-2009
Posted on Friday, November 06, 2009 - 07:18 pm:   

If I use {Transfermesh('transfer_1.txt',p)}
or {Transfermesh('transfer_4.txt',p)}, it works well.

I mean.. the data p from transfer_1.txt is different from transfer_4.txt.

If you remove transfer("transfer_"+$stage+".txt",p)
and use transfer_4.txt you can see the value of p (upper-right plot) is different from transfer_1.txt
Top of pagePrevious messageNext messageBottom of page Link to this message

Marek Nelson (mgnelson)
Moderator
Username: mgnelson

Post Number: 156
Registered: 07-2007
Posted on Friday, November 06, 2009 - 08:01 pm:   

You are correct, I did not look close enough. The transfer files are different at the end of the data. Sorry about that.

graph of transfer file data

The reason that my example works and yours does not, is that my example had a staged geometry. The staged geometry forces FlexPDE to reprocess the entire script file. You can force this behavior by using SELECT STAGEGRID. The attached file should run the way you want it to.

application/octet-stream
testimport2.pde (3.4 k)

Top of pagePrevious messageNext messageBottom of page Link to this message

Jae Lee (dream627)
Member
Username: dream627

Post Number: 4
Registered: 11-2009
Posted on Friday, November 06, 2009 - 08:21 pm:   

Oh! It works!

Thank you very much! It's nice to talk with you.
Thank you again.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration