mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   mtsieve (https://www.mersenneforum.org/showthread.php?t=23042)

pepi37 2019-09-24 09:58

[QUOTE=paulunderwood;526476]Here is the script that handles multiple header lines in a file:

[CODE]open INFILE, "<@ARGV[0]" or die "Need input file\n";
open OUTFILE, ">@ARGV[1]" or die "Need output file\n";

while ( <INFILE> ) {
if( $_ =~ /\[/ ) {
@header = split( ' ', $_ );

@expression = split( '\$', @header[1] );

@start = split( '\[', @header[2] );
@start = split( '\]', @start[1] );

$current = @start[0];
} else {
$current += $_;
}
print OUTFILE $expression[0].$current.substr($expression[1],1)."\n";
}
[/CODE][/QUOTE]


THANKS, works perfect!

rogue 2019-09-24 13:09

[QUOTE=rebirther;526420]@rogue:

a feature request for srsieve2, the x factors found is uninteresting for me, can you replace it with x factors left + factors found rate f/sec? The factors left total I can only see at the end of sieving.[/QUOTE]

I'll think about it. It would likely need another switch to control what to show, i.e. factors found or remaining terms.

rebirther 2019-09-24 15:12

[QUOTE=rogue;526486]I'll think about it. It would likely need another switch to control what to show, i.e. factors found or remaining terms.[/QUOTE]


And to spend time the prp output file.

rogue 2019-09-24 15:45

[QUOTE=rebirther;526499]And to spend time the prp output file.[/QUOTE]

I believe I added that in the latest build. Try -fB. I call it BOINC format since it is used for input to BOINC.

rebirther 2019-09-24 18:19

[QUOTE=rogue;526501]I believe I added that in the latest build. Try -fB. I call it BOINC format since it is used for input to BOINC.[/QUOTE]


nope, still not working

rogue 2019-09-24 18:41

[QUOTE=rebirther;526512]nope, still not working[/QUOTE]

In what way is it not working? is this the missing carriage return or something else?

rebirther 2019-09-25 05:13

[QUOTE=rogue;526514]In what way is it not working? is this the missing carriage return or something else?[/QUOTE]


Fatal error: invalid argument

Happy5214 2019-09-25 07:45

[QUOTE=rebirther;526547]Fatal error: invalid argument[/QUOTE]

See [URL]https://www.mersenneforum.org/showpost.php?p=524883&postcount=195[/URL]. SVN hasn't been updated yet to add this fix.

rogue 2019-09-25 14:36

Sorry, but I have been busy and haven't had time to make changes.

rogue 2019-10-02 19:47

[QUOTE=pepi37;526221]Hit error one more time, now on twinsieve[/QUOTE]

I haven't been able to reproduce this yet. It might be fixed with some other changes I've made to the framework, but I don't know right now. I need to continue testing.

rogue 2019-10-03 15:53

I did find a bug that can occur when using multiple threads. I suspect that might be behind the error you encountered.


All times are UTC. The time now is 22:33.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.